or.npm put in -D nuxt-typed-router@legacy.Setup.Sign up the module in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a path has no params defined, the params home is going to not even be actually available as an alternative in the hub.router.push('/ login/bar')// Inaccuracy!router.push( title: 'login', params: foo: 'bar')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Really good!router.push( name: 'login')// Excellent!pages/user/ [i.d.] vue.When an option has actually a demanded param described, browsing precisely to this option is going to throw a mistake if you do not provide a params home or even if you place an inappropriate param.router.push( title: 'user-id')// Mistake!router.push( title: 'user-id', params: bar: 'baz')// Mistake!router.push('/ user')// Mistake!const id="ey7878".router.push('/ user/$ i.d. ')// Really good!router.push( title: 'user-id', params: i.d.)// Great!router.push('/ consumer/$ i.d./ jewel')// Inaccuracy!For resolved courses, the params property will certainly be accessible and also accurately keyed in.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Good!