or.npm mount -D nuxt-typed-router@legacy.Configuration.Register the element in the nuxt.config.ts, carried out!export default defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Instance Utilization.pages/login. vue.When a route has actually no params specified, the params building will certainly certainly not also be available as a possibility in the hub.router.push('/ login/bar')// Error!router.push( title: 'login', params: foo: 'bar')// Mistake!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( label: 'login')// Excellent!pages/user/ [i.d.] vue.When a route has actually a demanded param determined, browsing exactly to this route will toss an error if you don't provide a params residential property or if you put a wrong param.router.push( name: 'user-id')// Inaccuracy!router.push( name: 'user-id', params: club: 'baz')// Inaccuracy!router.push('/ user')// Error!const i.d.="ey7878".router.push('/ customer/$ id ')// Really good!router.push( label: 'user-id', params: i.d.)// Great!router.push('/ consumer/$ i.d./ baguette')// Inaccuracy!For solved courses, the params building is going to be actually readily available and also appropriately keyed.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Excellent!