Angular2 upgrade module
Is it possible to use angular-deferred-bootstrap with Angular2's upgrade module?
I'm using Angular-deferred-bootstrap in my Angular1 app to resolve a dependency before angular1 bootstraps. I would like to upgrade my Angular1 app to Angular2 using "UpgradeModule", however I don't see a way to reconcile angular-deferred-bootstrap with angular-deferred-bootstrap.
Thoughts?
It seems that setting a constant is no longer possible. What I have done is the following:
-
I created an angular ConfigService
-
I call the ConfigService service during angular bootstrapping via APP_INITIALIZER
-
I downgrade the ConfigService
-
I can access the service values in angularjs
-
If you need access in the config phase than I suppose you can use a ServiceProvider or set a global in the ConfigService