Skip to content

Conversation

@tchesa
Copy link

@tchesa tchesa commented Oct 1, 2018

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()"/>

@EnmanuelParedesR
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants