mardi 22 septembre 2020

Ember: Set model data to component value?

I tried to set a model data into an ember component data. But it didn't work.

actions: {
   setValue(modelData, type) {
         // this doesn't work
         this.set('currentType', type);
         this.set('currentData', modelData);
         // this also doesn't work
         this.setProperties({
             currentType: type,
             currentData: modelData
         });

   }
}

And got this error

enter image description here




Aucun commentaire:

Enregistrer un commentaire