or.npm set up -D nuxt-typed-router@legacy.Arrangement.Register the element in the nuxt.config.ts, performed!export default defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Example Utilization.pages/login. vue.When a path has actually no params determined, the params building is going to certainly not even be available as a choice in the router.router.push('/ login/bar')// Error!router.push( title: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Good!router.push( title: 'login')// Great!pages/user/ [id] vue.When an option has a needed param described, navigating specifically to this option is going to toss an error if you do not give a params property or even if you place an incorrect param.router.push( label: 'user-id')// Inaccuracy!router.push( title: 'user-id', params: pub: 'baz')// Mistake!router.push('/ individual')// Inaccuracy!const i.d.="ey7878".router.push('/ consumer/$ i.d. ')// Good!router.push( name: 'user-id', params: i.d.)// Really good!router.push('/ individual/$ id/ jewel')// Error!For addressed routes, the params residential property will be actually on call and also appropriately keyed in.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Great!