or.npm install -D nuxt-typed-router@legacy.Arrangement.Register the element in the nuxt.config.ts, carried out!export default defineNuxtConfig( components: [' nuxt-typed-router'],. ).Example Consumption.pages/login. vue.When an option has no params described, the params building is going to not even be actually on call as a choice in the router.router.push('/ login/bar')// Error!router.push( title: 'login', params: foo: 'bar')// Inaccuracy!router.push(" https://vuejsfeed.com/login")// Great!router.push( name: 'login')// Really good!pages/user/ [id] vue.When a course has actually a called for param defined, navigating precisely to this path will throw an inaccuracy if you don't offer a params property or if you put an inappropriate param.router.push( label: 'user-id')// Mistake!router.push( name: 'user-id', params: pub: 'baz')// Inaccuracy!router.push('/ user')// Inaccuracy!const i.d.="ey7878".router.push('/ user/$ id ')// Really good!router.push( name: 'user-id', params: id)// Great!router.push('/ user/$ i.d./ baguette')// Inaccuracy!For fixed courses, the params property will be available as well as correctly keyed in.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Mistake!console.log( route.params.foo)// Really good!