Ionic Cloud Deploy - need to inject on every component?

Do I need to do this for every single component / page in my app?

1 Like

No, only on the pages where you need to interact with the API.
Since it’s injected in ngModule, it’s initiated at start up.

1 Like

Makes sense. Thanks!

I’m still a bit unclear. Can you elaborate? Since what is injected in ngModule? What page needs to interact with the API? The root page?

I put the code referenced in the docs in the constructor of app.component.ts