首页 > AngularRequireSeed 工程中controller的scope为undefined,什么原因?

AngularRequireSeed 工程中controller的scope为undefined,什么原因?

define(['controllers/controllers'], function (controllers) {

'use strict';
controllers.controller('MyCtrl1', [function ($scope) {
    console.log($scope); //这里为undefined
}]);

});


controllers.controller('MyCtrl1', ['$scope',function ($scope) {

console.log($scope); 

}]);

【热门文章】
【热门文章】