控制器不是函数
Controller not a function
我开始关注 AngularJS CoffeeScript Style Guide,但我收到关于我的控制器不是函数的错误,我做错了什么?
在你的controller
中应该是,
angular.module('realEstate').controller('AggregateController', AggregateController);
而不是,
angular.module('app').controller('AggregateController', AggregateController);
我开始关注 AngularJS CoffeeScript Style Guide,但我收到关于我的控制器不是函数的错误,我做错了什么?
在你的controller
中应该是,
angular.module('realEstate').controller('AggregateController', AggregateController);
而不是,
angular.module('app').controller('AggregateController', AggregateController);