Named routers

Given below is a snippet.<router-link :to=”{ name: ‘mine’, params: { id: 77 }}”>Name</router-link> How would you accomplish the same result programmatically?

Options

1.router.push({ name: 'mine', params: { id: 77 }})
2.router.push({ name: 'mine', query: { id: 77 }})

3.router.push({ name: 'mine', params: { id: 77 }, value:"Name"})

4.router.push({ name: 'mine', query: { id: 77 }, value:"Name"})

Related Posts

Close Bitnami banner
Bitnami