Angular directive

places-auto-complete source

Description

Provides address auto complete feature to an input element Requires: input tag Restrict To: Attribute

Parameters

NameTypeDescription
Attr2MapOptions service

convert html attribute to Google map api options

Attributes

NameTypeDescription
[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'}"/>