vsGoogleAutocomplete
vsGoogleAutocomplete copied to clipboard
callback when update place
trafficstars
use the vs-update directive to get a function callback called every time the place value updates.
Example:
<input
type="text"
name="place"
ng-model="place.name"
vs-google-autocomplete
vs-autocomplete-validator
vs-street-number="place.number"
vs-street="place.address"
vs-city="place.city"
vs-district="place.neighborhood"
vs-state="place.state"
vs-post-code="place.zip"
vs-latitude="place.lat"
vs-longitude="place.lng"
vs-update="onPlaceUpdate()"/>
Hello friend,
This a really good change and idk why the PR was not accepted, even though you forget to add the callback function on the scope params.
Have a nice day.