or even.npm install -D nuxt-typed-router@legacy.Arrangement.Sign up the element in the nuxt.config.ts, performed!export nonpayment defineNuxtConfig( modules: [' nuxt-typed-router'],. ).Example Use.pages/login. vue.When an option has actually no params defined, the params property is going to not even be actually readily available as an option in the hub.router.push('/ login/bar')// Error!router.push( name: 'login', params: foo: 'bar')// Error!router.push(" https://vuejsfeed.com/login")// Great!router.push( name: 'login')// Really good!pages/user/ [i.d.] vue.When an option has a required param determined, getting through precisely to this route will toss an error if you do not give a params home or even if you put an inappropriate param.router.push( name: 'user-id')// Inaccuracy!router.push( label: 'user-id', params: club: 'baz')// Error!router.push('/ user')// Error!const id="ey7878".router.push('/ user/$ id ')// Good!router.push( title: 'user-id', params: id)// Great!router.push('/ individual/$ i.d./ jewel')// Error!For addressed options, the params home will definitely be actually readily available and the right way keyed in.const path = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Error!console.log( route.params.foo)// Really good!