router.setRoot functionality for ionic-vue


Is there a way to programatically set the root page in ionic-vue?
I can push with router.push(), and go back with router.go(-1), but i need a way to clean the stack and set one active page, without other pages/components existing in background(stack).


Mm, not this isn’t possible. setRoot was an old method back when Ionic didn’t do proper routing. The option would be to do something like replace and remove