olefirenko / vue-google-autocomplete

A Vue.js autosuggest component for the Google Places API.
https://olefirenko.github.io/vue-google-autocomplete/
MIT License
505 stars 258 forks source link

How to pass class when field is empty #156

Open tdrabikdev opened 3 years ago

tdrabikdev commented 3 years ago

Hello guys,

i am looking for solution to add custom class to field if is empty. I have validation on backend - laravel.

:class="{'is-invalid' : form.errors.has('project_location')}"

in this way i am passing information about errors, is any chance for similar solution?