look at providers: https://docs.angularjs.org/guide/providers

On 6 January 2015 at 18:18, K leonard <[email protected]> wrote:

> Lets say I want to resolve my dependencies using a custom resolving
> function instead of directly registering the depency with the container, is
> this possible to implement using AngularJS?
> If I have the function
> myFunction(myVariableA, myVariableB){
> }
>
> Let's say myVariableA is not registered with the container, but I want to
> call a custom function that may determine what dependency to actually
> return, which may or may not be already registered with the container.
> Is this possible?
> 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.
>



-- 
Tony Polinelli

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