How can I get the value of the selected item from Laravel 5.3 Form::select()
using vue.js. I have been using Laravel 5.1 and AngularJS but I am starting a new project with Laravel 5.3 so I decided to use vue.js. With Angular I used this:
{!! Form::select('status',Status(),NULL, ['class' => 'form-control','ng-model'=>'status','placeholder'=>'All Status','ng-change'=>'getStatus(status)','ng-init'=>"getStatus(100)"]) !!}
Then in my AngularJS file I write the method getStatus
that tracks the changes and returns the newly selected item.
I am very new to vue.js and I have no idea how to do the same. I have tried using v-model
but I get errors
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire