or.npm install -D nuxt-typed-router@legacy.Setup.Register the element in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Instance Consumption.pages/login. vue.When a route has actually no params described, the params residential or commercial property will certainly not even be actually available as a possibility in the modem.router.push('/ login/bar')// Inaccuracy!router.push( name: 'login', params: foo: 'pub')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( name: 'login')// Great!pages/user/ [i.d.] vue.When an option has a required param specified, getting through specifically to this option will definitely throw an error if you don't provide a params building or even if you put an incorrect param.router.push( name: 'user-id')// Mistake!router.push( name: 'user-id', params: club: 'baz')// Error!router.push('/ customer')// Error!const i.d.="ey7878".router.push('/ user/$ i.d. ')// Great!router.push( title: 'user-id', params: i.d.)// Good!router.push('/ consumer/$ id/ baguette')// Inaccuracy!For addressed routes, the params residential property will be actually available as well as properly keyed in.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Excellent!