lundi 20 mai 2019

Ember list of model not reloaded without refreshing page

I'm displaying only published articles by sorting my list with the 'published' attribute.

Now when I edit an article and set it from 'published' to 'draft' and then I return to the list I see the 'draft' article even if I wrote a filter in my controller.

article.save()
this.transitionToRoute('article.list');

Just going to another page and return to the list, or doing a browser refresh is enough to list properly only 'published' articles and so solve my problem.

Where am I suppose to look to solve my problem without refreshing ? Thanks




Aucun commentaire:

Enregistrer un commentaire