Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promise from bootstrap is not returned since Beta.10 #7145

Closed
frederikschubert opened this issue Jun 30, 2016 · 2 comments
Closed

Promise from bootstrap is not returned since Beta.10 #7145

frederikschubert opened this issue Jun 30, 2016 · 2 comments

Comments

@frederikschubert
Copy link

Short description of the problem:

Prior to this change it was possible to act on the Promise that is returned from the angular bootstrap function. Due to the removed return statements this cannot be done anymore.

What behavior are you expecting?

I would like to call enableDebugTools from @angular/platform-browser on my root component to debug change detection performance in my app.

ionicBootstrap(App, [SINGLETON_PROVIDERS).then(enableDebugTools);

Then it is possible to call ng.profiler.timeChangeDetection(); to get the speed of the change detection for the current application state.

Which Ionic Version?
2.0.0-beta.10

@jgw96 jgw96 added the v2 label Jun 30, 2016
@adamdbradley
Copy link
Contributor

Also as a heads up, soon with offline template compiling the ionicBootstrap function will be replaced with Angular's @AppModule, since the bootstrap process is being refactored: https://docs.google.com/document/d/13-LUm1QvOff2631tHz6C4goIHuMzma2_1_PFiLryoIs/edit?ts=57682de6#heading=h.e07aj2l7pv3h

@frederikschubert
Copy link
Author

Great! Thanks for the quick response!

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants