I am having some trouble accessing properties passed to my Ember component, which is as follows:
import Ember from 'ember';
export default Ember.Component.extend({
isRowEditorActive: function() {
return this.get('items').length > 0;
}.property('items'),
actions: {
// My actions here
}
});
The items
(list of strings) that I pass in, can be accessed without problems within the template {{line-items-table items=['asd', 'asd']}}
However trying to get
them within the component just returns undefined. Any suggestions?
Aucun commentaire:
Enregistrer un commentaire