or.npm install -D nuxt-typed-router@legacy.Setup.Register the element in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Usage.pages/login. vue.When a path has actually no params described, the params residential property will certainly certainly not also be offered as a possibility in the router.router.push('/ login/bar')// Mistake!router.push( name: 'login', params: foo: 'pub')// Mistake!router.push(" https://vuejsfeed.com/login")// Really good!router.push( title: 'login')// Great!pages/user/ [id] vue.When a route has a required param defined, getting through exactly to this course will toss an inaccuracy if you don't offer a params home or if you put an incorrect param.router.push( label: 'user-id')// Mistake!router.push( label: 'user-id', params: pub: 'baz')// Error!router.push('/ user')// Mistake!const id="ey7878".router.push('/ user/$ id ')// Great!router.push( title: 'user-id', params: i.d.)// Great!router.push('/ customer/$ i.d./ baguette')// Error!For addressed courses, the params building will certainly be actually offered as well as properly keyed.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Good!