Change browser title on route change in angular 1.5 component router

150 views Asked by At

I am using angular 1.5 component router. I need to be able to change the title shown on the browser tab whenever there is a route change.

I have gone through the component router docs and googled it to many a websites but without any luck. The only way I can see to do it, is using vanilla JS inside each component's $onInit method.

I am looking out for an angular way of doing it and setting all the titles in one place. Please help.

0

There are 0 answers