So I have a main.js file which is a route:
import user from 'config/user';
import { computed } from '@ember/object';
export default Route.extend(SomeMixin, {
firstName: computed(function () {
return user.firstName;
},
}),
in my hbs file I have
firstName is always empty in my hbs file. Is it possible to add a computed function to a route?
Aucun commentaire:
Enregistrer un commentaire