or.npm put up -D nuxt-typed-router@legacy.Configuration.Register the component in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Instance Consumption.pages/login. vue.When a route has actually no params determined, the params building will certainly certainly not even be actually offered as an alternative in the router.router.push('/ login/bar')// Inaccuracy!router.push( label: 'login', params: foo: 'bar')// Mistake!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( label: 'login')// Good!pages/user/ [id] vue.When a route has actually a demanded param described, getting through precisely to this path will throw an error if you don't give a params home or if you place an incorrect param.router.push( title: 'user-id')// Mistake!router.push( label: 'user-id', params: club: 'baz')// Error!router.push('/ customer')// Error!const i.d.="ey7878".router.push('/ consumer/$ id ')// Really good!router.push( name: 'user-id', params: i.d.)// Good!router.push('/ customer/$ i.d./ baguette')// Mistake!For fixed options, the params property will definitely be actually available and also correctly keyed.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Excellent!