Ionic platform.ready() method is needed

Viewed 13844

I have a basic question about platform.ready().then(() => {}) method.Do we need to use this method each and every time when we use a native plugin? Like Status bar or LocalStorage or etc?

Is that not enough if we use above method only inside the app.component.ts file hence it is the root component? After this root component hope platform is ready for all the other subsequent components no? Then why do we need to use ready method each and every other child components too? Because I have seen so many articles and videos where it uses if there is any native plugin.Hope this is not needed no?

On this official doc where you can see that it uses inside the child component too no? Your thoughts? platform.ready().then(() => {})

1 Answers
Related