Hi Greg!

*Promise* is an object that is resolved with the data you want later on 
time, you're making an asynchronous call.
What is probably happening is that the configuration of the *$router* 
service is being done before the call/promise is completed/resolved, that 
why *homePageUrl* is undefined at that time.

Try to configure the *$router* after the *homePageUrl* is defined, i.e., 
inside the callback function that is executed when you successfully call 
the *SharedData* service.

I hope i'd helped.

Regards,
*Luís Loureiro*

quarta-feira, 10 de Junho de 2015 às 09:23:46 UTC+1, Greg escreveu:
>
> up!

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