Greg, I'm not sure about what's going on and why your code doesn't work. I've seen this (https://github.com/johnpapa/angular-styleguide#route-resolve-promises) yesterday and I think it might help you. Try to config the routes in the *$routeProvider*; set a controller for your main route ('/') and then inside the controller do the redirect.
BTW, I've never used *ngNewRouter* before so I'm not sure if there's a *$routeProvider*. Let me know if this helped you. Regards, *Luís Loureiro* sexta-feira, 19 de Junho de 2015 às 14:59:30 UTC+1, Greg escreveu: > > I have http://plnkr.co/edit/8WJ8g7GeWdTsOy3UQOsy?p=preview which work > with a simple promise service but I am not able to make it work with the > complex one form the initial post. In fact the idea is to get from > config.json the isHomePage= true the get page ID to resolve p.resolve( { > homePage : 2}); > -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.