var $injector = angular.injector(['ng']);
var def  =  $injector.get('$q'); 

Le jeudi 31 juillet 2014 17:30:00 UTC+2, maxim couton a écrit :
>
> Hi,
>
>  I 'd like to get a reference to $q from outside an angular controller , 
>
>  Something like   angular.getDef()  which should return a $q ,
>
>
> any idea ?
>
> Thanks
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to