I solve this using a double bootstrap.  I first bootstrap a "bootloader" 
which then bootstraps the main app.

This isolates all use of promises to the bootloader since all of these 
dependencies can be directly injected into the second bootloader.

The only downside to this is that angular does not support anonymous 
(DOM-free) bootstraps.  It would be great to be able to bootstrap without 
touching the DOM.

Alexander


On Saturday, 15 February 2014 19:10:46 UTC+1, Tewson Seeoun wrote:
>
> Thanks, Sander. I'll try it out.
>
> Tewson
>
>
> 2014-02-15 17:24 GMT+00:00 Sander Elias <[email protected] <javascript:>>
> :
>
>> 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 a topic in the 
>> Google Groups "AngularJS" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/angular/F5yoJevAHNg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> [email protected] <javascript:>.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> Visit this group at http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>
>
>
> -- 
> Tewson Seeoun
>
> http://tewson.com
> http://www.linkedin.com/in/tewson 
>

-- 
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/groups/opt_out.

Reply via email to