...

/

Improving Page Titles

Improving Page Titles

Let’s discuss how to change titles of different pages of an Ember application.

Default page titles

Whenever we generate a route, Ember inserts a {{page-title}} into the templates based on the name of the route. In some cases, this works out quite well, like in the case of the bands route we generated in the previous chapter. However, in other instances, we have to manually adjust those default titles.

If you go to any songs page, you’ll find that the page title for them is Band | Bands | Rock & Roll with Octane. That’s because nested routes also imply inheriting the page title of the parent route and then prepending to it. Since we have {{page-title "Rock & Roll ...

Access this course and 1400+ top-rated courses and projects.