I have a shared component - headerbarComponent - with a property - headerTitle. I use it to show which page is current. And I need to change this title depneding on a loaded template. Onсe a new component loaded it calls the method
headerbarComponent.setTitle( newTile ) { this.headerTitle = newTitle }
It shows in JS console that the title is changed but there's no changes at the header at all.
<div>{{headerTitle}}</div>
How do I change this title?