moment.js usage with angular

moment.js usage with angular

moment.js, it is cool for support time / date display issue, you do not need parse again, moment already done all of you want.

Also support i18n feature, include timezone file, then you can choose your local name to config.


of course, angular community already built moment supporting moment.js.

angular-moment Usage,


angular.module("myapp").constant 'angularMomentConfig',<br></br>preprocess: 'utc',<br></br>timezone: 'Asia/Taipei'<br></br>


{{start_time | amDateFormat:'YYYY-MMM-Do ddd'}}<br></br>


Web developer, focus on website fullstack, special JavaScript, and love sharing developing experience and communicate with developers.