angular支持日期、数字、货币等数据的本地化。使用$locale服务实现日期本地化非常方便。
首先安装ngLocale:
bower install ngLocale
然后对需要的语言js文件进行合并,比如angular-locale_zh-cn.js
最后在controller引入$locale服务即可
参考:
https://docs.angularjs.org/guide/i18n
跳转到新页面回滚至顶端问题:
http://stackoverflow.com/questions/21055952/changing-route-doesnt-scroll-to-top-in-the-new-page