or.npm install -D nuxt-typed-router@legacy.Configuration.Register the component in the nuxt.config.ts, done!export default defineNuxtConfig( components: [' nuxt-typed-router'],. ).Instance Consumption.pages/login. vue.When a course has no params specified, the params property will definitely not even be on call as a possibility in the hub.router.push('/ login/bar')// Error!router.push( label: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Really good!router.push( name: 'login')// Great!pages/user/ [i.d.] vue.When an option has actually a demanded param specified, navigating exactly to this course will throw an inaccuracy if you do not supply a params residential property or if you place a wrong param.router.push( label: 'user-id')// Inaccuracy!router.push( name: 'user-id', params: bar: 'baz')// Mistake!router.push('/ customer')// Mistake!const i.d.="ey7878".router.push('/ customer/$ id ')// Excellent!router.push( label: 'user-id', params: id)// Great!router.push('/ individual/$ id/ jewel')// Mistake!For settled options, the params residential or commercial property will definitely be actually accessible and also correctly keyed in.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Good!