AngularJS启动过程分析

1111

image

2016-06-30_181609

image

app.controller('myCtrl',['$scope',function($scope){
    $scope.wcrq=1234567890;
}]);
angular.bootstrap(document,['myApp']);   一定要在控制器后面启动,否则会报如下错误:

http://errors.angularjs.org/1.4.6/ng/areq?p0=myCtrl&p1=not a function, got undefined

posted @ 2016-06-14 15:57  李华丽  阅读(158)  评论(0编辑  收藏  举报
AmazingCounters.com