or.npm install -D nuxt-typed-router@legacy.Configuration.Register the component in the nuxt.config.ts, carried out!export default defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Consumption.pages/login. vue.When a route has no params specified, the params building is going to not also be actually on call as an alternative in the modem.router.push('/ login/bar')// Inaccuracy!router.push( title: 'login', params: foo: 'bar')// Error!router.push(" https://vuejsfeed.com/login")// Good!router.push( title: 'login')// Really good!pages/user/ [id] vue.When a path has a needed param defined, getting through precisely to this route is going to throw an error if you do not offer a params residential 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('/ individual')// Inaccuracy!const i.d.="ey7878".router.push('/ user/$ id ')// Good!router.push( name: 'user-id', params: i.d.)// Really good!router.push('/ consumer/$ id/ baguette')// Mistake!For solved courses, the params home is going to be actually offered as well as correctly keyed.const route = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Really good!