or.npm set up -D nuxt-typed-router@legacy.Configuration.Register the element in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Use.pages/login. vue.When a course has actually no params described, the params residential or commercial property will certainly certainly not also be actually available as an option in the modem.router.push('/ login/bar')// Mistake!router.push( label: 'login', params: foo: 'bar')// Error!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( name: 'login')// Really good!pages/user/ [i.d.] vue.When a route has a required param described, navigating specifically to this course is going to throw an inaccuracy if you do not deliver a params home or if you put an inappropriate param.router.push( name: 'user-id')// Mistake!router.push( name: 'user-id', params: bar: 'baz')// Inaccuracy!router.push('/ individual')// Mistake!const id="ey7878".router.push('/ consumer/$ i.d. ')// Great!router.push( label: 'user-id', params: i.d.)// Really good!router.push('/ consumer/$ i.d./ jewel')// Inaccuracy!For settled options, the params property will be readily available as well as the right way keyed in.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Good!