You can also get the regular Q and/or Bluebird promise libraries outside of
angular if needs be. Plus, Promises are actually native in a lot of modern
browsers now too.

e


On Thu, Jul 31, 2014 at 9:20 AM, maxim couton <[email protected]>
wrote:

> 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.
>

-- 
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