摘要: {{collapse.content}} {{heading}}... 阅读全文
posted @ 2017-10-19 15:22 zhujhhxx 阅读(144) 评论(0) 推荐(0) 编辑
摘要: angular.module('myApp',[]) .directive('bookList',function () { return { restrict:'ECAM', controller:function ($scope) { // console.log($scope.a()); ... 阅读全文
posted @ 2017-10-19 11:09 zhujhhxx 阅读(122) 评论(0) 推荐(0) 编辑
摘要: angular.module('myApp',[]) //require可以将其他指令传递给自己 //directivename:通过驼峰法的命名指定了控制器应该带有哪一条指令,默认会从同一个元素上的指令 //^directivename:在父级查找指令 //?directivename:表示指令是可选的,如果找不到,不需要抛出异常 .directive('bookLi... 阅读全文
posted @ 2017-10-18 17:51 zhujhhxx 阅读(90) 评论(0) 推荐(0) 编辑
摘要: angular.module('myApp',[]) .directive('bookList',function () { return{ restrict:'ECAM', controller:function ($scope) { console.log($scope); $sco... 阅读全文
posted @ 2017-10-18 17:50 zhujhhxx 阅读(161) 评论(0) 推荐(0) 编辑
摘要: angular.module('myApp',[]) .directive('bookList',function () { return{ restrict:'ECAM', controller:function ($scope) { console.log($scope); $sco... 阅读全文
posted @ 2017-10-18 16:40 zhujhhxx 阅读(129) 评论(0) 推荐(0) 编辑
摘要: angular.module('myApp',[]) .directive('customTags',function () { return{ restrict:'ECMA', template:'{{user.id}}', replace:true, compile:functi... 阅读全文
posted @ 2017-10-18 15:41 zhujhhxx 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 转载http://blog.csdn.net/qq_21577869/article/details/47136915 阅读全文
posted @ 2017-10-18 14:47 zhujhhxx 阅读(60) 评论(0) 推荐(0) 编辑
摘要: .directive('customTags2',function () { return{ restrict:'ECMA', template:'2', replace:true, priority:-1 } }) .directive('custo... 阅读全文
posted @ 2017-10-18 13:58 zhujhhxx 阅读(52) 评论(0) 推荐(0) 编辑
摘要: angular.module('myApp',[]) .directive('customTags',function () { return{ restrict:'ECMA', template:'新数据 ', transclude:true,//为true可以插入节点 repla... 阅读全文
posted @ 2017-10-18 13:16 zhujhhxx 阅读(58) 评论(0) 推荐(0) 编辑
摘要: angular.module('myApp',[],['$compileProvider',function ($compileProvider) { $compileProvider.directive('customTags',function () { return{ restrict:'ECAM',//默认M不显示在浏览器,但会编译执行 ... 阅读全文
posted @ 2017-10-18 11:14 zhujhhxx 阅读(184) 评论(0) 推荐(0) 编辑