etodanik / ion-google-place

Ionic directive for a location dropdown that utilizes google maps
MIT License
250 stars 201 forks source link

Fix model value can not reload and display the address problem #71

Open ulion opened 8 years ago

ulion commented 8 years ago

At least on my ionic 1.2.4, the ionic input string $formatter will convert the modelvalue first to string, which will cause the ion-google-place can not display the address, with the model value exact the previous valid value set from the directive.

This fix will recover the raw model object value, then it can display the address correctly.