or.npm put in -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 course has no params determined, the params residential property will not even be actually readily available as an option in the router.router.push('/ login/bar')// Error!router.push( title: 'login', params: foo: 'bar')// Mistake!router.push(" https://vuejsfeed.com/login")// Great!router.push( name: 'login')// Really good!pages/user/ [id] vue.When an option has a needed param defined, browsing precisely to this path is going to toss an inaccuracy if you do not offer a params residential property or even if you place a wrong param.router.push( title: 'user-id')// Error!router.push( title: 'user-id', params: bar: 'baz')// Mistake!router.push('/ user')// Error!const id="ey7878".router.push('/ consumer/$ i.d. ')// Really good!router.push( title: 'user-id', params: id)// Great!router.push('/ consumer/$ i.d./ jewel')// Error!For resolved routes, the params property will definitely be on call as well as correctly keyed in.const course = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Excellent!