Angular directive
places-auto-complete source
Description
Provides address auto complete feature to an input element Requires: input tag Restrict To: Attribute
Parameters
Name | Type | Description |
---|---|---|
Attr2MapOptions | service |
convert html attribute to Google map api options |
Attributes
Name | Type | Description |
---|---|---|
[Any AutocompleteOptions] | AutoCompleteOptions |
Example
Example:
<script src="https://maps.googleapis.com/maps/api/js?libraries=places"></script>
<input places-auto-complete types="['geocode']" on-place-changed="myCallback(place)" component-restrictions="{country:'au'}"/>