随笔分类 -  AngularJs

摘要:from:http://blog.csdn.net/u013451157/article/details/60866210 与其他指令一样,ng-if指令也会创建一个子级作用域,因此,如果在ng-if指令中添加了元素,并向元素属性增加 ng-model指令,那么ng-model指令对应的作用域属性子 阅读全文
posted @ 2017-04-23 16:53 94cool 阅读(1874) 评论(0) 推荐(0) 编辑
摘要:from:http://blog.csdn.net/u011127019/article/details/52564111 定义和用法 ng-change 指令用于告诉 AngularJS 在 HTML 元素值改变时需要执行的操作。 ng-change 指令需要搭配 ng-model 指令使用。 A 阅读全文
posted @ 2017-04-23 16:52 94cool 阅读(11213) 评论(0) 推荐(0) 编辑
摘要:地址:http://localhost/waservice.html?id=17 获取参数id的值 app.config(['$locationProvider', function ($locationProvider) { $locationProvider.html5Mode({ enable 阅读全文
posted @ 2016-10-09 15:41 94cool 阅读(6947) 评论(0) 推荐(0) 编辑
摘要:1、AngularJs的controller中格式: var dateAsString = $filter('date')(item_date, "yyyy-MM-dd hh:mm:ss"); 注意: controller需要注入$filter 2、 AngularJs的views中格式: {{it 阅读全文
posted @ 2016-09-22 12:20 94cool 阅读(23204) 评论(0) 推荐(4) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示