or.npm put in -D nuxt-typed-router@legacy.Setup.Register the component in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( components: [' nuxt-typed-router'],. ).Instance Usage.pages/login. vue.When a course has no params described, the params home will not even be actually offered as an alternative in the router.router.push('/ login/bar')// Inaccuracy!router.push( label: 'login', params: foo: 'bar')// Error!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( label: 'login')// Great!pages/user/ [i.d.] vue.When a course has a demanded param described, getting through exactly to this course will certainly throw an inaccuracy if you don't supply a params property or if you put an incorrect param.router.push( name: 'user-id')// Inaccuracy!router.push( name: 'user-id', params: pub: 'baz')// Mistake!router.push('/ consumer')// Mistake!const id="ey7878".router.push('/ customer/$ i.d. ')// Good!router.push( name: 'user-id', params: id)// Excellent!router.push('/ individual/$ id/ jewel')// Mistake!For settled paths, the params home will certainly be available and the right way keyed.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Really good!