- I'm deleting a record in the details page (i.e.,
host/items/details/<id>
) using a delete button, the whole page is inside a component . - After deleting, I'm redirecting to another route(i.e.,
host/items/all
), which list all the items. - But the list in the route (i.e.,
host/items/all
) still contains the deleted record !
I'm think i should refresh the page, but i can neither refresh the model in the ember store nor refresh the page using when using Transition to.
this.refresh
is only accessible inside aroute.js
file- I can't refresh a page from a
component.js
file
I'm new to ember, Please some one give me a solution !
Aucun commentaire:
Enregistrer un commentaire