or.npm put in -D nuxt-typed-router@legacy.Setup.Register the element in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Use.pages/login. vue.When a path has actually no params determined, the params residential property is going to certainly not even be actually readily available as a choice in the router.router.push('/ login/bar')// Mistake!router.push( name: 'login', params: foo: 'bar')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Excellent!router.push( title: 'login')// Great!pages/user/ [i.d.] vue.When a path has actually a called for param determined, navigating precisely to this option will throw a mistake if you do not supply a params building or even if you put a wrong param.router.push( name: 'user-id')// Error!router.push( title: 'user-id', params: pub: 'baz')// Mistake!router.push('/ user')// Error!const id="ey7878".router.push('/ user/$ id ')// Excellent!router.push( label: 'user-id', params: i.d.)// Good!router.push('/ consumer/$ i.d./ baguette')// Mistake!For fixed routes, the params residential property will definitely be actually accessible as well as the right way keyed.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Really good!