Is there a way to access dependencies in a controller method without scope binding?
Var myController = function($http, $window) {
this.window = $window
}
myController.prototype.method = function() {
}
angular.module('app').controller('myController', myController)
source
share