1
这告诉AngularJS,myUtilModule中定义的所有值,工厂和服务都应该在myOtherModule模块中可用。换句话说,myOtherModule依赖于myUtilModule。模块之间的依赖关系 - 控制器?
var myUtilModule = angular.module("myUtilModule", []);
myUtilModule.value ("myValue" , "12345");
var myOtherModule = angular.module("myOtherModule", ['myUtilModule']);
myOtherModule.controller("MyController", function($scope, myValue) {
});
我的问题是:如果你所定义的内部myUtilModule控制器,并尝试使用它们myOtherModule。这可能吗?