Dependency Injection in Controller Prototype

Is there a way to access dependencies in a controller method without scope binding?

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)
+4
source share

All Articles