I am learning Ionic 2 now and I finding it hard to find out how to solve this issue.
I have a page that every time a user enter, it gets and updates data from the server using ionViewWillEnter hook. I want to separate this feature on a new component to be used in other pages.
This new component will be used by inserting his element tag on the pages. The problem is that ionViewWillEnter (neither other hooks) is not called in this component. It seems to be called only in Page Components. I change the code to use Angular 2 hook ngOnInit and the component works fine, but this hook is not called again when user navigates between pages.
Is there any way to refresh this component by calling a specific method whenever ionViewWillEnter was called on the PageComponent.