Aborting navigation with Meteor iron-router

前端 未结 5 1276
遥遥无期
遥遥无期 2021-01-12 08:54

I have a (client-side) router in a Meteor app, and links using the {{pathFor}} helper.

I am setting a dirty flag in the Session

5条回答
  •  忘掉有多难
    2021-01-12 09:39

    Is it somewhere specific you want to go? There is also Router.go(routeName) which will make the page point to the given routeName. What I was going for is maybe you can just force the Router to go to the current page hence neglecting the back action.

提交回复
热议问题