or.npm install -D nuxt-typed-router@legacy.Arrangement.Register the component in the nuxt.config.ts, done!export default defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Consumption.pages/login. vue.When a path has actually no params determined, the params residential or commercial property will not even be available as an alternative in the modem.router.push('/ login/bar')// Error!router.push( title: 'login', params: foo: 'club')// Mistake!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( title: 'login')// Excellent!pages/user/ [id] vue.When a path has actually a called for param specified, getting through specifically to this course is going to throw an error if you do not deliver a params property or even if you put an incorrect param.router.push( name: 'user-id')// Error!router.push( title: 'user-id', params: club: 'baz')// Error!router.push('/ user')// Error!const id="ey7878".router.push('/ customer/$ i.d. ')// Excellent!router.push( name: 'user-id', params: i.d.)// Excellent!router.push('/ customer/$ id/ baguette')// Error!For addressed options, the params home will be actually available and correctly keyed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Great!