由网友(那朵云好甜)分享简介:我要动态更新<标题>在此基础上的路由/页用户查看我的网页。问题是,当页面加载时,几秒钟它显示的{{title}}里面我<标题> 标记它后来在当前页面的标题所说(从控制器加载)。没有办法,我可以有{{title}}的默认隐藏,直到值加载?I want to dynamically update...
我要动态更新<标题>在此基础上的路由/页用户查看
我的网页。问题是,当页面加载时,几秒钟它显示的{{title}}里面我<标题>
标记它后来在当前页面的标题所说(从控制器加载)。没有办法,我可以有{{title}}的默认隐藏,直到值加载?
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?
推荐答案
使用 ngBind
在&LT;标题&GT;
元素:
<title ng-bind="title"> Default title </title>
相关推荐
最新文章