# @kurkov87/angular-google-places-autocomplete

> angular-google-places-autocomplete ================

Latest version **0.2.9-1** (published 2019-06-21) · 0 weekly downloads

## Install

```sh
npm install @kurkov87/angular-google-places-autocomplete
pnpm add @kurkov87/angular-google-places-autocomplete
yarn add @kurkov87/angular-google-places-autocomplete
bun add @kurkov87/angular-google-places-autocomplete
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.9-1 |
| Published | 2019-06-21 |
| First published | 2019-06-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Unpacked size | 58.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | kurkov87 |

## Links

- npm: https://www.npmjs.com/package/@kurkov87/angular-google-places-autocomplete
- Repository: https://github.com/IgorKurkov/angular-google-places-autocomplete
- Homepage: https://github.com/ltnetwork/angular-google-places-autocomplete
- Issues: https://github.com/kuhnza/angular-google-places-autocomplete/issues
- npm.io page: https://npm.io/package/@kurkov87/angular-google-places-autocomplete

## Recent versions

- 0.2.9-1 (latest) — 2019-06-21

## README

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):

```html
<script src="https://maps.googleapis.com/maps/api/js?libraries=places"></script>
<script src="/bower_components/angular-google-places-autocomplete/src/autocomplete.js"></script>
```

You'll probably also want the styles:

```html
<link rel="stylesheet" href="/bower_components/angular-google-places-autocomplete/src/autocomplete.css">
```

Usage
-----

First add the dependency to your app:

```javascript
angular.module('myApp', ['google.places']);
```

Then you can use the directive on text inputs like so:

```html
<input type="text" g-places-autocomplete ng-model="myScopeVar" />
```

The directive also supports the following _optional_ attributes:

* forceSelection &mdash; forces the user to select from the dropdown. Defaults to `false`.
* options &mdash; See [google.maps.places.AutocompleteRequest object specification](https://developers.google.com/maps/documentation/javascript/reference#AutocompletionRequest).

Examples
--------

* [Basic](example/basic.html)
* [Options](example/options.html)
* [Force selection](example/force-selection.html)
* [Custom Places](example/custom-places.html)

Issues or feature requests
--------------------------

Create a ticket [here](https://github.com/kuhnza/angular-google-places-autocomplete/issues)

Contributing
------------

Issue a pull request including any relevant testing and updated any documentation if required.

---
_Source: https://npm.io/package/@kurkov87/angular-google-places-autocomplete · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
