Create a Shared Component in Ionic 3

We can create a component that’s shared by a few other components. In Ionic 3, we have to declare the component in @NgModule. Ionic 3 also supports lazy loading and each page is itself a module. We cannot declare a component in two modules. I’ll show you how to wrap the component in its own module and share that in different modules.