In app.html i’ve have a header bar which i want to show on all pages.
However the value of the ion-title i want to change based on the data of the page.
In ionic 2 is there equivalent like the jquery syntax $(‘ion-title’).html(‘PageTitle’) ?

For now i “fixed” this problem by implementing a page-base.ts and extend every page class on this class. But i know this is not the best solution. I also tried to implement this ion-header inside an directive but i could get the navcontroller to work in the directive code. Any thoughts on how to solve this better?