or.npm install -D nuxt-typed-router@legacy.Configuration.Sign up the module in the nuxt.config.ts, done!export default defineNuxtConfig( components: [' nuxt-typed-router'],. ).Example Use.pages/login. vue.When a path has actually no params specified, the params property will certainly not even be actually accessible as a choice in the hub.router.push('/ login/bar')// Mistake!router.push( title: 'login', params: foo: 'pub')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Great!router.push( label: 'login')// Excellent!pages/user/ [id] vue.When a path has a called for param defined, browsing specifically to this course is going to toss a mistake if you do not deliver a params building or if you place a wrong param.router.push( label: 'user-id')// Error!router.push( title: 'user-id', params: bar: 'baz')// Error!router.push('/ customer')// Inaccuracy!const id="ey7878".router.push('/ consumer/$ i.d. ')// Good!router.push( name: 'user-id', params: id)// Really good!router.push('/ individual/$ id/ jewel')// Inaccuracy!For fixed routes, the params home will certainly be actually on call as well as properly typed in.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Great!