or.npm install -D nuxt-typed-router@legacy.Arrangement.Register the component in the nuxt.config.ts, done!export default defineNuxtConfig( components: [' nuxt-typed-router'],. ).Example Consumption.pages/login. vue.When a route has no params determined, the params property is going to certainly not also be actually on call as a possibility in the router.router.push('/ login/bar')// Mistake!router.push( label: 'login', params: foo: 'club')// Error!router.push(" https://vuejsfeed.com/login")// Really good!router.push( name: 'login')// Great!pages/user/ [i.d.] vue.When a route has a demanded param determined, browsing precisely to this route will definitely throw a mistake if you don't offer a params property or even if you place a wrong param.router.push( label: 'user-id')// Error!router.push( name: 'user-id', params: bar: 'baz')// Mistake!router.push('/ user')// Mistake!const id="ey7878".router.push('/ customer/$ id ')// Excellent!router.push( label: 'user-id', params: i.d.)// Really good!router.push('/ individual/$ i.d./ jewel')// Mistake!For settled paths, the params building is going to be readily available as well as accurately keyed in.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Good!