Using 1.3.0-rc1 (latest now).
I tried:
<title ng-bind="title"></title>
<title>{{title}}</title>
But nothing.
If I do {{title}}
anywhere in <body>
it works.
I'm doing:
app.main.run(function($rootScope) {
$rootScope.$on('$routeChangeSuccess', function(event, current, previous) {
if (current.hasOwnProperty('$$route')) {
$rootScope.title = current.$$route.title;
}
});
});
I can see my title
in the model. What's going on with the <title>
tag?
This is fixed by adding ng-app
on <html>
tag.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With