I want to dynamically update the <title>
of my page based on which route / page a user is viewing. Problem is, when the page loads, for a few seconds it shows {{title}} inside my <title>
tag where it later puts in the title of the current page (loaded from the controller). Any way I could have the {{title}} hidden by default until the value is loaded?
我想根据用户正在查看的路径/页面动态更新页面的
1 个解决方案
#1
71
Use ngBind
on the <title>
element:
在
<title ng-bind="title"> Default title </title>
#1
71
Use ngBind
on the <title>
element:
在
<title ng-bind="title"> Default title </title>