or.npm install -D nuxt-typed-router@legacy.Configuration.Register the component in the nuxt.config.ts, performed!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Instance Utilization.pages/login. vue.When a route has no params described, the params building will definitely not also be actually on call as an alternative in the hub.router.push('/ login/bar')// Mistake!router.push( label: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Good!router.push( label: 'login')// Really good!pages/user/ [i.d.] vue.When a path has actually a required param described, browsing specifically to this route will certainly toss a mistake if you don't supply a params building or even if you put an incorrect param.router.push( label: 'user-id')// Error!router.push( label: 'user-id', params: bar: 'baz')// Error!router.push('/ user')// Inaccuracy!const i.d.="ey7878".router.push('/ individual/$ i.d. ')// Excellent!router.push( name: 'user-id', params: i.d.)// Really good!router.push('/ consumer/$ i.d./ baguette')// Inaccuracy!For dealt with courses, the params residential property will certainly be actually on call as well as the right way keyed in.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Really good!