摘要: AngularJS 服务(Service) AngularJS 中你可以创建自己的服务,或使用内建服务 什么是服务? 在 AngularJS 中,服务是一个函数或对象,可在你的 AngularJS 应用中使用。 AngularJS 内建了30 多个服务,分别应用于不的应用场景。(就好比所谓的设计模式 阅读全文
posted @ 2017-03-31 17:31 To-Infinity-And-Bod 阅读(307) 评论(0) 推荐(0) 编辑
摘要: AngularJS 表达式 AngularJS 表达式写在双大括号内:{{ expression }}。 AngularJS 表达式把数据绑定到 HTML,这与 ng-bind 指令有异曲同工之妙。 AngularJS 将在表达式书写的位置"输出"数据。 AngularJS 表达式 很像 JavaS 阅读全文
posted @ 2017-03-31 14:56 To-Infinity-And-Bod 阅读(196) 评论(0) 推荐(0) 编辑
摘要: How to use AngularJS with NgAnimate The directive nganimate is very simple. You just need to declare the ng-animate attribute to an element that have 阅读全文
posted @ 2017-03-31 13:39 To-Infinity-And-Bod 阅读(3014) 评论(0) 推荐(0) 编辑