使用1.3.0-rc1(最新版).
我试过了:
<title ng-bind="title"></title>
<title>{{title}}</title>
Run Code Online (Sandbox Code Playgroud)
但没什么.
如果我在其中的{{title}}任何地方<body>工作.
我正在做:
app.main.run(function($rootScope) {
$rootScope.$on('$routeChangeSuccess', function(event, current, previous) {
if (current.hasOwnProperty('$$route')) {
$rootScope.title = current.$$route.title;
}
});
});
Run Code Online (Sandbox Code Playgroud)
我可以title在模型中看到我.这是怎么回事用<title>标签?
| 归档时间: |
|
| 查看次数: |
1889 次 |
| 最近记录: |