or even.npm put in -D nuxt-typed-router@legacy.Arrangement.Sign up the component in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Example Usage.pages/login. vue.When a course has no params defined, the params building will definitely certainly not also be on call as a possibility in the modem.router.push('/ login/bar')// Inaccuracy!router.push( title: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Really good!router.push( title: 'login')// Great!pages/user/ [i.d.] vue.When a route has actually a called for param defined, getting through specifically to this course will definitely throw an error if you don't offer a params residential property or even if you put a wrong param.router.push( title: 'user-id')// Inaccuracy!router.push( label: 'user-id', params: bar: 'baz')// Error!router.push('/ user')// Inaccuracy!const i.d.="ey7878".router.push('/ individual/$ i.d. ')// Great!router.push( title: 'user-id', params: i.d.)// Good!router.push('/ individual/$ i.d./ jewel')// Error!For addressed routes, the params building is going to be on call and also accurately entered.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Great!