Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jacklam718/ng-places-autocomplete

a fancy places autocomplete angular directive, support google, baidu places autocomplete
https://github.com/jacklam718/ng-places-autocomplete

Last synced: 3 days ago
JSON representation

a fancy places autocomplete angular directive, support google, baidu places autocomplete

Awesome Lists containing this project

README

        

# ng-places-autocomplete
A fancy and simple diective for places autocomplete and quickly preview the place in a map window. Now support google places api and baidu places api.

# Demo

DEMO

# Install
#### Bower:
```bash
bower install --save ng-fancy-places-autocomplete
```

# Usage
Include the required libraries.

This package is required jQuery please include jQuery on your project.

#### Google places api:
```html

```

#### Baidu places api:
```html

```

#### Import this library on your project:
```html

```

#### Declare a dependency on your angular app:
```javascript
var ngApp = angular.module('ngApp', ['ng-places-autocomplete']);
```

#### Add the directive to textbox, now enable places autocomplete with a map popup preview option:
```html

```

#### Or you can only enable the places autocmplete:
```html

```

#### Options:
map-popup    - map popup preview window

city    - choose a specific city    # now only for baidu

country    - choose a country    # now only for google

lang    - choose language    # now only for google

# TODO:
test case