1// literal string path
2router.push('home')
3
4// object
5router.push({ path: 'home' })
6
7// named route
8router.push({ name: 'user', params: { userId: '123' } })
9
10// with query, resulting in /register?plan=private
11router.push({ path: 'register', query: { plan: 'private' } })
12
1//if we have a route that admits params via url:
2{path : '/page/:id?', name='page', component: Page},
3
4 //we can edit the url to show the params we want like this:
5<router-link :to="{name: 'page', params:{id: 'hello'}}"> </router-link>