or.npm mount -D nuxt-typed-router@legacy.Setup.Register the component in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Instance Utilization.pages/login. vue.When a path has actually no params described, the params building will definitely certainly not even be offered as an alternative in the router.router.push('/ login/bar')// Inaccuracy!router.push( title: 'login', params: foo: 'bar')// Error!router.push(" https://vuejsfeed.com/login")// Really good!router.push( name: 'login')// Really good!pages/user/ [id] vue.When a course has a required param specified, getting through exactly to this option will throw an inaccuracy if you don't give a params residential or commercial property or even if you place an incorrect param.router.push( title: 'user-id')// Mistake!router.push( label: 'user-id', params: pub: 'baz')// Inaccuracy!router.push('/ customer')// Mistake!const i.d.="ey7878".router.push('/ customer/$ i.d. ')// Good!router.push( name: 'user-id', params: id)// Great!router.push('/ individual/$ i.d./ baguette')// Error!For settled routes, the params property will be actually offered as well as correctly keyed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Excellent!