是否可以在运行期间注入作用域或控制器?或任何其他将服务动态注入控制器的建议?
Application.controller('IndexController', function($scope){
// some actions
if(someconditions) {
$scope.$inject = [someServiceName];
// and here i want to use service methods
}
});
提前致谢