I am using Ionic 3 … Trying to create a custom header object.
Goal is to just put <myheader></myheader> on all my pages, so I don’t have to recreate the wheel each time.
This is a lot harder in Ionic 3 then in Ionic v1. Declaring , Importing .forRoot or .forChild … Hard to grasp when you’re just getting started with Ionic 2+. Each time my CLI updates … the damn thing does something completely different. Sometimes it creates a component with a .module.ts before it didn’t … NOW! it creates 1 component.module.ts. So wow! idk.
Not trying to rant … but I am lost on what is happening so I can pinpoint the problem.
It works on the homepage … but doesn’t work on any other page. I see the tags for the <myheader> but it doesn’t render any content. I have a console.log() in the component just to see if it fires… and it doesn’t on the non-root pages.
Willing to paypal someone $ to help me solve this issue. Clearing I am f-ing this up.
I also want to changed the submenu … so I thought i could do it with one component.
I took Sujan’s advice … And just put it on every page. Wasted 3 days trying to get it to work and the fact is it just doesn’t like having ion-header in a component.