摘要:
不用缓存模板的写法如下:1、index.html: directive-templateUrl 2、hello.js:var myModule = angular.module("app",[]);myModule.directive('hello',function(){ return {... 阅读全文
posted @ 2015-05-20 15:20
杨杨0708
阅读(590)
评论(0)
推荐(0)
摘要:
1、index.html: scopeAt 2、scopeAnd.js:var myModule = angular.module("app",[]);myModule.controller('myCtrl', ['$scope', function($scope){ $scope.sa... 阅读全文
posted @ 2015-05-20 11:51
杨杨0708
阅读(629)
评论(0)
推荐(0)
摘要:
1、index.html: scopeEqual 控制器中的内容: 指令中的内容: 2、scopeEqual.js:var myModule = angular.module("app",[]);myModule.controller('myCtrl', ['$scope', functi... 阅读全文
posted @ 2015-05-20 11:26
杨杨0708
阅读(300)
评论(0)
推荐(0)
摘要:
1、index.html: scopeAt 2、scopeAt.js:var myModule = angular.module("app",[]);myModule.controller('myCtrl', ['$scope', function($scope){ $scope.ctrlF... 阅读全文
posted @ 2015-05-20 10:09
杨杨0708
阅读(277)
评论(0)
推荐(0)
浙公网安备 33010602011771号