mardi 27 février 2018

How to make a model automatically reload and fetch data when the data in the DB changes?

I am using ember-cli-mirage for the past few days. I have some doubts regarding it.

Question :

How to automatically reload the model after the data in ember-mirage has changed?

I mean: After performing a $.post() operation on ember mirage data, schema is changed. This has to be reflected in the template. But, since the model for the template is already run, the model hook is not run again!

Kindly help me regarding this.

Thank you.




Aucun commentaire:

Enregistrer un commentaire