Lazy loading with common provider

Viewed 640

I have implemented lazy loading pattern on ionic 3 project.It works awesomely. I have one question though.Let's say I need to implement native StatusBar features on the app.Hence I have to implement it on each page differently, I have put that on app.module.ts as shown below.

providers: [
    StatusBar,
]

Is this good approach or Do I need to inject StatusBar as a provider on each component's module? To me, it seems redundant work.But what is the best way of doing it and why's that?

2 Answers
Related