angularjs - Dependency injection in Controller's prototype -


is there way access dependencies in controller's method without attaching scope ?

var mycontroller = function($http, $window) {  this.window = $window //this slow digest cicle  }  mycontroller.prototype.method = function() {   // how access $http here ?  }  angular.module('app').controller('mycontroller', mycontroller) 


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -