angular-google-places-autocomplete
Angular directive for the Google Places Autocomplete component.
Installation
Install via bower: bower install angular-google-places-autocomplete
Or if you're old skool, copy src/autocomplete.js
into your project.
Then add the script to your page (be sure to include the Google Places API as well):
You'll probably also want the styles:
Usage
First add the dependency to your app:
angular;
Then you can use the directive on text inputs like so:
The directive also supports the following optional attributes:
- forceSelection — forces the user to select from the dropdown. Defaults to
false
. - options — See google.maps.places.AutocompleteRequest object specification.
Examples
Issues or feature requests
Create a ticket here
Contributing
Issue a pull request including any relevant testing and updated any documentation if required.