or even.npm put in -D nuxt-typed-router@legacy.Configuration.Register the component in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Instance Utilization.pages/login. vue.When a course has no params described, the params property will certainly not also be actually available as an alternative in the router.router.push('/ login/bar')// Error!router.push( label: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Great!router.push( title: 'login')// Really good!pages/user/ [id] vue.When an option has actually a needed param determined, getting through precisely to this course will definitely throw an error if you don't deliver a params building or if you put an inappropriate param.router.push( label: 'user-id')// Mistake!router.push( title: 'user-id', params: bar: 'baz')// Error!router.push('/ individual')// Inaccuracy!const i.d.="ey7878".router.push('/ consumer/$ id ')// Excellent!router.push( title: 'user-id', params: id)// Excellent!router.push('/ consumer/$ id/ jewel')// Mistake!For solved options, the params building will certainly be readily available and properly entered.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Excellent!