Sander, your solution works great for delaying code from running inside controllers until you have done your initial setup. However, troubles occur when you want to put some code into route resolve object as this solution won't stop that code from running. I forked your plunkr<http://plnkr.co/edit/yYo4zgxTjbmNThW06osY?p=preview>to show you what I mean. My app relies on many route resolves so I unfortunately can't use your solution. Since many apps use route resolves to setup data for the controller I thought it'd be a good idea to share my experience, before people waste any time trying to get this solution to work with route resolves as I did.
Den lördagen den 15:e februari 2014 kl. 18:24:31 UTC+1 skrev Sander Elias: > > Hi Stu, > > You can create a 'base-state' without any router at all. I do like > ui-router, however for something like this, it is not really needed. I have > just shown a way to do, that can integrate in any angular app. > > Regards > Sander > -- 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.
