Closed YoranBrondsema closed 3 years ago
I think you need to declare your headData and add @tracked title
@rwjblue Of course... Thanks! Thought it'd be useful to document this is in the README for the next person who forgets this!
Absolutely, documenting seems like a great idea!
I am using
ember-cli-head
directly in my application (Ember.js 3.20.4) to update the document title. Sotemplates/head.hbs
is simple:I have two routes:
However, the title is not updated when changing routes. It's like
templates/head.hbs
is not reactive to the changes in properties onheadData
.It does work when I use the pre-Octane
set
method. The titles are correctly updated in the template when changing routes: