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
Post a Comment