how to create router link?
umefarooq opened this issue · 1 comments
umefarooq commented
How to create router link with this package, same way vue router link are created or other way?
rigor789 commented
There is no <router-link> instead you need to call $navigator.navigate(to, options).
For example
<Button text="Navigate" @tap="$navigator.navigate('/some/other/route', { clearHistory: true })" />Or if called from the component's methods
export default {
methods: {
doStuff() {
this.$navigator.navigate('/some/route', { backstackVisible: false })
}
}
}