I want a variable called "name" in my router or controller , which i will use in my hbs template. Right now , I'm doing this. But the get() is not loading if i navigate backward and click the link to the current page again. It only loads the first time and if i refresh the page . Due to this, the value of name in my form is not reloading everytime i hit the page.
#controller
name: computed('model.name', {
get() {
return this.get('model.name');
}
})
#.hbs
<button >Update Post</button>
Aucun commentaire:
Enregistrer un commentaire