angular-google-maps icon indicating copy to clipboard operation
angular-google-maps copied to clipboard

Clear Input field in searchBox

Open cozyazure opened this issue 12 years ago • 1 comments

I was wondering if we can have finer control on the searchBox property.

Say I would like to append an ng-model towards the searchBox (for whatever reason it should be, maybe pulling from some api or something), there is no way I can bind the data towards it. One problem would be, say a user keyed in some location in the searchbox, chose his result, and when he wants to perform a second search, he would have to highlight the input, press delete, then re-key in again. Is there a way to clear the input field?

I tried to monkey-patch the myself, by adding some new properties in the provider but to no avail. Is there anything that we can to do the this.searchBox's this.input element? Or maybe I have missed out something?

cozyazure avatar Nov 11 '14 03:11 cozyazure

Closing this issue as I use GoogleMapApi provider to recreate a new search function with own customized searchbox

cozyazure avatar Nov 11 '14 09:11 cozyazure