or.npm mount -D nuxt-typed-router@legacy.Setup.Sign up the element in the nuxt.config.ts, performed!export default defineNuxtConfig( elements: [' nuxt-typed-router'],. ).Instance Use.pages/login. vue.When an option has actually no params determined, the params home will definitely certainly not even be actually available as an option in the router.router.push('/ login/bar')// Mistake!router.push( title: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Good!router.push( name: 'login')// Good!pages/user/ [i.d.] vue.When a route has a demanded param specified, navigating exactly to this option will throw an inaccuracy if you do not offer a params residential or commercial property or if you place a wrong param.router.push( label: 'user-id')// Error!router.push( label: 'user-id', params: pub: 'baz')// Inaccuracy!router.push('/ user')// Mistake!const i.d.="ey7878".router.push('/ consumer/$ i.d. ')// Great!router.push( label: 'user-id', params: i.d.)// Great!router.push('/ individual/$ id/ jewel')// Mistake!For solved options, the params building will be available as well as correctly keyed.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Excellent!