0👍
You can send it as a component property. like this:
<Component foo_route="{{route('foo.update')}}"></Component>
And after you can use it in your component like this:
this.foo_route
- [Vuejs]-Cannot read property 'name' of undefined in Vuex/Nuxt
- [Vuejs]-How to prevent user change profile id in URL? Vue 3 Nodejs
Source:stackexchange.com