or.npm install -D nuxt-typed-router@legacy.Configuration.Sign up the element in the nuxt.config.ts, done!export nonpayment defineNuxtConfig( components: [' nuxt-typed-router'],. ).Instance Usage.pages/login. vue.When an option has no params determined, the params property will definitely certainly not also be readily available as an option in the hub.router.push('/ login/bar')// Error!router.push( title: 'login', params: foo: 'pub')// Error!router.push(" https://vuejsfeed.com/login")// Good!router.push( label: 'login')// Good!pages/user/ [i.d.] vue.When a route has a demanded param specified, navigating exactly to this option will throw an error if you don't supply a params residential property or if you place an incorrect param.router.push( label: 'user-id')// Mistake!router.push( name: 'user-id', params: club: 'baz')// Inaccuracy!router.push('/ consumer')// Inaccuracy!const id="ey7878".router.push('/ consumer/$ i.d. ')// Good!router.push( title: 'user-id', params: id)// Good!router.push('/ customer/$ id/ jewel')// Inaccuracy!For dealt with courses, the params residential property will certainly be actually readily available as well as appropriately entered.const option = useRoute().if (route.name === 'foo') console.log( route.params.baz)// Inaccuracy!console.log( route.params.foo)// Great!