or even.npm put in -D nuxt-typed-router@legacy.Configuration.Register the element in the nuxt.config.ts, performed!export nonpayment defineNuxtConfig( components: [' nuxt-typed-router'],. ).Example Usage.pages/login. vue.When an option has no params defined, the params home will definitely not also be on call as an alternative in the hub.router.push('/ login/bar')// Mistake!router.push( title: 'login', params: foo: 'club')// Mistake!router.push(" https://vuejsfeed.com/login")// Good!router.push( label: 'login')// Good!pages/user/ [i.d.] vue.When a path has a demanded param specified, browsing specifically to this route will certainly toss a mistake if you don't supply a params residential property or if you put an incorrect param.router.push( title: 'user-id')// Error!router.push( name: 'user-id', params: bar: 'baz')// Error!router.push('/ user')// Error!const i.d.="ey7878".router.push('/ consumer/$ id ')// Really good!router.push( title: 'user-id', params: id)// Good!router.push('/ customer/$ i.d./ baguette')// Mistake!For fixed courses, the params residential property will definitely be offered and appropriately keyed.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Excellent!