I am trying to make ember & typescript work together - I created a route with controller. In route's model() method I fetch data from server. I previously was able to access these data in controller via model
, but not now. model
attribute in controller is undefined (event though the model()
method works correctly).
model() {
return new EmberPromise((resolve, reject) => {
//fetch data from server
resolve(dataFromServer);
});
}
Can you advise me, how to access model
attribute in ember octane & typescript world?
thanks
Aucun commentaire:
Enregistrer un commentaire