mardi 22 octobre 2019

How to retrieve static data in Ember?

A few of my model have property with a list of state :

thing.js

...
status: DS.attr('number'),
statesValues: {1 : "First",2: "Some Choice", 3: "Nothing"}
...

How can I in another ember object, access the values from the Thing model ? I tried to Import the model but I do not even know the correct path to import.




Aucun commentaire:

Enregistrer un commentaire