or.npm put up -D nuxt-typed-router@legacy.Setup.Sign up the module in the nuxt.config.ts, performed!export nonpayment defineNuxtConfig( components: [' nuxt-typed-router'],. ).Example Use.pages/login. vue.When an option has actually no params specified, the params home will certainly not even be actually readily available as a choice in the modem.router.push('/ login/bar')// Error!router.push( label: 'login', params: foo: 'club')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( label: 'login')// Really good!pages/user/ [i.d.] vue.When a route has actually a required param specified, navigating specifically to this option will certainly toss an error if you don't supply a params building or even if you put a wrong param.router.push( label: 'user-id')// Inaccuracy!router.push( name: 'user-id', params: pub: 'baz')// Mistake!router.push('/ user')// Error!const i.d.="ey7878".router.push('/ individual/$ id ')// Really good!router.push( name: 'user-id', params: id)// Great!router.push('/ individual/$ i.d./ baguette')// Mistake!For addressed routes, the params home will be offered and the right way keyed in.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Excellent!