How to pass a vue.js value as a parameter to a route in blade

前端 未结 1 1804
既然无缘
既然无缘 2020-12-10 16:58

I have a route in Laravel that requires an id as a parameter.

Route::get(\'/example/{id}\', ExampleController@index)

If I had passed the d

相关标签:
1条回答
  • 2020-12-10 17:47

    You can just use v-bind for this, like following:

    <a :href="'/example/' + item.id" class="button success">Click</a>
    
    0 讨论(0)
提交回复
热议问题