有没有办法在控制器的方法中访问依赖项而不将其附加到范围?
Var myController = function($http, $window) {
this.window = $window //this will slow the digest cicle
}
myController.prototype.method = function() {
// How do i access $http here ?
}
angular.module('app').controller('myController', myController)