or.npm set up -D nuxt-typed-router@legacy.Arrangement.Register the module in the nuxt.config.ts, performed!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Instance Use.pages/login. vue.When a route has actually no params specified, the params residential or commercial property is going to not even be actually readily available as an alternative in the hub.router.push('/ login/bar')// Mistake!router.push( label: 'login', params: foo: 'club')// Mistake!router.push(" https://vuejsfeed.com/login")// Good!router.push( label: 'login')// Really good!pages/user/ [i.d.] vue.When a route has a needed param defined, navigating precisely to this option is going to throw a mistake if you do not give a params residential or commercial property or if you put an incorrect param.router.push( label: 'user-id')// Inaccuracy!router.push( name: 'user-id', params: bar: 'baz')// Mistake!router.push('/ customer')// Inaccuracy!const i.d.="ey7878".router.push('/ individual/$ id ')// Excellent!router.push( label: 'user-id', params: i.d.)// Excellent!router.push('/ customer/$ i.d./ baguette')// Inaccuracy!For fixed courses, the params home will definitely be readily available and also properly typed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Excellent!