How listen changed property in service, in route file?
export default Ember.Route.extend({
awardsManager: Ember.inject.service('awards-manager'),
awardsData: Ember.computed('awardsManager.awardsData', {
get() {
let awardsData = this.get('awardsManager.awardsData');
console.log(`awardsData changed to: ${awardsData}`);
return awardsData;
}
})
});
Do u think the problem is with arrow function, () => { }
?
I already had problems with arrow functions with computed properties.