or.npm mount -D nuxt-typed-router@legacy.Configuration.Sign up the module in the nuxt.config.ts, carried out!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When an option has actually no params defined, the params home will not also be available as a possibility in the hub.router.push('/ login/bar')// Mistake!router.push( name: 'login', params: foo: 'pub')// Mistake!router.push(" https://vuejsfeed.com/login")// Really good!router.push( title: 'login')// Great!pages/user/ [i.d.] vue.When an option has a demanded param defined, browsing exactly to this course will certainly throw an error if you don't give a params building or even if you put an inappropriate param.router.push( label: 'user-id')// Inaccuracy!router.push( title: 'user-id', params: pub: 'baz')// Mistake!router.push('/ consumer')// Mistake!const id="ey7878".router.push('/ customer/$ id ')// Excellent!router.push( title: 'user-id', params: i.d.)// Excellent!router.push('/ consumer/$ i.d./ baguette')// Inaccuracy!For fixed routes, the params residential property will be available and properly typed.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Really good!