samedi 27 mars 2021

How to reload any page on Transition in ember js using transitionTo?

  • 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 a route.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