or.npm install -D nuxt-typed-router@legacy.Arrangement.Sign up the module in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a path has no params defined, the params residential or commercial property will certainly not even be actually readily available as a possibility in the router.router.push('/ login/bar')// Inaccuracy!router.push( name: 'login', params: foo: 'bar')// Mistake!router.push(" https://vuejsfeed.com/login")// Really good!router.push( title: 'login')// Great!pages/user/ [i.d.] vue.When a path has actually a called for param described, navigating precisely to this course will definitely toss a mistake if you don't offer a params home or if you place an incorrect param.router.push( name: 'user-id')// Error!router.push( label: 'user-id', params: club: 'baz')// Inaccuracy!router.push('/ consumer')// Inaccuracy!const i.d.="ey7878".router.push('/ user/$ i.d. ')// Good!router.push( title: 'user-id', params: id)// Really good!router.push('/ user/$ id/ baguette')// Inaccuracy!For settled options, the params home will certainly be actually readily available and accurately keyed.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Great!