随笔分类 -  angular

摘要:1 angular.module('uiRouterSample.contacts', [ 2 'ui.router' 3 ]) 4 5 .config( 6 [ '$stateProvider', '$urlRouterProvider', 7 ... 阅读全文
posted @ 2015-12-21 14:40 Evans.wang 阅读(873) 评论(7) 推荐(0)
摘要:bg-template方式,这种方式在浏览器加载html时会将模板置入$templateCache中在启用了$templateCache的$http ajax请求, angular将会首先在$templateCache中查找是否有对此url的缓存如果有 则不会发起ajax请求html2js方式,用于... 阅读全文
posted @ 2015-12-12 15:50 Evans.wang 阅读(310) 评论(0) 推荐(0)
摘要:1 来看例子 2 angular.module("app",[]) 3 .controller("demoController",["$scope",function($scope){ 4 $scope.title = "angualr"; 5 }]) 6 7 8 he... 阅读全文
posted @ 2015-12-12 15:36 Evans.wang 阅读(201) 评论(0) 推荐(0)