or.npm put up -D nuxt-typed-router@legacy.Configuration.Register the component in the nuxt.config.ts, performed!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Example Usage.pages/login. vue.When a route has actually no params defined, the params property will definitely not also be actually on call as an alternative in the modem.router.push('/ login/bar')// Inaccuracy!router.push( name: 'login', params: foo: 'bar')// Error!router.push(" https://vuejsfeed.com/login")// Great!router.push( title: 'login')// Excellent!pages/user/ [i.d.] vue.When a path has actually a demanded param defined, browsing exactly to this path will definitely throw a mistake if you don't give a params residential or commercial property or if you place a wrong param.router.push( name: 'user-id')// Error!router.push( label: 'user-id', params: pub: 'baz')// Mistake!router.push('/ consumer')// Inaccuracy!const id="ey7878".router.push('/ consumer/$ id ')// Good!router.push( label: 'user-id', params: i.d.)// Really good!router.push('/ consumer/$ id/ jewel')// Error!For settled routes, the params building will definitely be accessible and also properly typed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Excellent!