随笔分类 -  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 阅读(1898) 评论(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 阅读(11244) 评论(0) 推荐(0)
摘要:地址:http://localhost/waservice.html?id=17 获取参数id的值 app.config(['$locationProvider', function ($locationProvider) { $locationProvider.html5Mode({ enable 阅读全文
posted @ 2016-10-09 15:41 94cool 阅读(6961) 评论(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 阅读(23232) 评论(0) 推荐(4)