I have a model which has this field
diaryItemLabel: DS.attr('string'),
I want to access the data from this field in my controller.
Controller.js
I want to replace the 'Add' with whatever data I get from diaryItemLabel.
I cannot use this.get('model.diaryItemLabel'). It gives me this.get() is not a function. I tried using Ember.get('model', 'diaryItemLabel'). It gives me empty string.
Could someone guide me to the right direction?
Thanks
Aucun commentaire:
Enregistrer un commentaire