-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PageTitle binding does not work #25
Comments
That must have gotten refactored out accidentally at some point. I'll add it back in soon, but the code you need is in app.js. Just replace the current empty AppController with the following.
It just plugs into a router event to get the route data and place it on the scope. |
I'm probably going to change it to the following to be consistent with the "controller as" syntax when I put it in the generator...
and change index.html to ...
|
Thanks! 👍 (I noticed it wasn't working and thought I had modified something that broke it ). |
BTW, may I suggest the following changes to the above code to go in accordance with the Angular styleguide?
|
Do I need to do something special to make it work? the code generated suggests that each route can set the title, but that does not work as it is. Help here would be appreciated.
The text was updated successfully, but these errors were encountered: