Skip to content

Update angular-gplaces.js#1

Open
heralight wants to merge 2 commits intoleobispo:masterfrom
heralight:master
Open

Update angular-gplaces.js#1
heralight wants to merge 2 commits intoleobispo:masterfrom
heralight:master

Conversation

@heralight
Copy link

Update header
remove use strict (duplicate with context)
Add ngPlaceError to raise an event on input error, useful to set error class or prevent action.
rename ngSelect in ngPlaceSelected

Add displayAddress to selected place.
Why?
e.g.: with a query like "Denfert-Rochereau, Paris, France" you will a "formatted_address":"France" which is very wrong, you want : "Denfert-Rochereau, Paris, France" like in your input... then I added it.

Update header
remove use strict (duplicate with context)
Add ngPlaceError to raise an event on input error, useful to set error class or prevent action.
rename ngSelect in ngPlaceSelected
Add displayAddress to selected place.
Why?
e.g.: with a query like "Denfert-Rochereau, Paris, France" you will a "formatted_address":"France" which is very wrong, you want : "Denfert-Rochereau, Paris, France" like in your input... then I added it.
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