Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular2-google-place

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-google-place

google place auto complete search feature for angular 2 with easy integration

  • 2.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

#Angular 2 Google Place Map Library Auto Complete

##Output google-search

##Usage npm install --save angular2-google-place

Add following library in your index.html

  <script src="https://maps.googleapis.com/maps/api/js?libraries=places&sensor=false&key=API_KEY"></script>

You need to replace the key in above library with your own google api key. You can generate key from here : Generate Key

You also need to enable Google Places API Web Service from google developer Console.

Add GooglePlaceModule in your NgModule imports file

import {GooglePlaceModule} from "angular2-google-place"

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    FormsModule,
    HttpModule,
    GooglePlaceModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})

Use google place directive like below

<input type="text" [(ngModel)]="address"  (setAddress)="getAddress($event)" googleplace/>

FAQs

Package last updated on 11 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc