or.npm install -D nuxt-typed-router@legacy.Setup.Register the component in the nuxt.config.ts, performed!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a course has actually no params determined, the params home will definitely not even be offered as a possibility in the modem.router.push('/ login/bar')// Error!router.push( label: 'login', params: foo: 'pub')// Mistake!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( label: 'login')// Excellent!pages/user/ [id] vue.When a path has actually a demanded param specified, browsing specifically to this course will definitely toss a mistake if you don't provide a params residential property or if you put an incorrect param.router.push( name: 'user-id')// Inaccuracy!router.push( title: 'user-id', params: club: 'baz')// Inaccuracy!router.push('/ user')// Inaccuracy!const i.d.="ey7878".router.push('/ consumer/$ id ')// Really good!router.push( name: 'user-id', params: i.d.)// Excellent!router.push('/ customer/$ i.d./ jewel')// Error!For solved courses, the params residential or commercial property is going to be actually offered and also appropriately typed.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Excellent!