在<title>上绑定不起作用
使用1.3.0-rc1(最新版本)。
我试过了:
<title ng-bind="title"></title>
<title>{{title}}</title>
但没有。
如果我在<body>任何位置使用{{title}} ,它就会起作用。
我正在做:
app.main.run(function($rootScope) {
$rootScope.$on('$routeChangeSuccess', function(event, current, previous) {
if (current.hasOwnProperty('$$route')) {
$rootScope.title = current.$$route.title;
}
});
});
我可以在模型中看到我的title 。 <title>标记发生了什么?
这通过在<html>标签上添加ng-app解决。
