My title tag:
<title ng-bind="title"></title>
When I navigate my app, the page title is updated correctly in the browser tab. However, when I look at the History both in Chrome and Opera, instead of page titles, I see raw URLs. This is not the case for Firefox, which shows page titles correctly.
I tried adding a placeholder title:
<title ng-bind="title">Placeholder Title</title>
but this does not resolve the problem.
You can see this in action by going to a website like Angular Material, navigate a couple of routes, and check your History in Chrome or Opera, and you will see something like:
https://material.angularjs.org/latest/demo/colors
instead of
Angular Material - Demos > Colors
.
Why is this happening? How can this be fixed?
The only fix that I've found is to specify the title like this
<title>{{title}}</title>
Which makes Chrome and Opera History show actual titles instead of URLs. The problem with this
approach is that the first loaded page will appear in history
with title "{{title}}", which is why we use ng-bing="title"
instead of {{title}}
in the first place.