vsGoogleAutocomplete icon indicating copy to clipboard operation
vsGoogleAutocomplete copied to clipboard

callback when update place

Open tchesa opened this issue 7 years ago • 1 comments
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()"/>

tchesa avatar Oct 01 '18 15:10 tchesa

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.

EnmanuelParedesR avatar Apr 07 '20 21:04 EnmanuelParedesR