These are chat archives for angular/angular-2-ionic-2

23rd
Aug 2017
Ash
@ashgibson
Aug 23 2017 03:26
anyone building custom cordova plugins?
Mike Michaelis
@mikemichaelis
Aug 23 2017 19:44
anybody have any pointers on how to bootstrap Angular 2 after platform.ready()?
lots of stuff in google i've read but it's all angularjs. And a few requests for the rediculous behavior of Ionic 2 to bootstrap Angular 2 before platform.ready() is called
ie ionic-team/ionic2-app-base#114
specifically my issue is with using IonicStorage and SQLite where the cordova plugin is not ready (even though storage.ready() is fired - another well documented issue in google). I simply want to wait until Cordova is 100% ready and then bootstrap my app. Seems reasonable, yes?
Mike Michaelis
@mikemichaelis
Aug 23 2017 19:50
this must be a significant issue as I am creating services injected into components that are accessing things not yet initialized, so h ....o......w ....... t....o..........s....l...o.......w......t...h..i..n...g....s..........d...o....w.....n.......a....n....d.....a....v....o..i..d.......r...a...c....e........c..o....n....d...i...t..i..o...n....s?
Mike Michaelis
@mikemichaelis
Aug 23 2017 21:10
in case anybody is interested, to solve the problem i created a completely empty root page that depends on nothing, once platform.ready() is fired I change the Ionic root page to the normal root page of the app, which then is able to use the hardware devices as normal. Good grief.