Socket
Socket
Sign inDemoInstall

angular2-google-map-auto-complete

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-google-map-auto-complete

google map auto complete directive for angular2


Version published
Weekly downloads
7
decreased by-41.67%
Maintainers
1
Weekly downloads
 
Created
Source

Angular2

##Sample output google-search

The sources for this package are in (https://github.com/rajan-g/angular2-google-place-autocomplete) repo. Please file issues and pull requests against that repo.

Live Demo

Live Demo Site OR Live Demo Site ##Usage node install npm install angular2-google-map-auto-complete bower install bower install google-map-auto-complete ###1.In index.html page include following script ###2.component file use like below import {Component} from 'angular2/core'; import {GoogleplaceDirective} from '../directives/googleplace.directive';

   @Component({
       selector : 'my-app',
       directives: [GoogleplaceDirective],
       template:  `
           <input type="text" [(ngModel)] = "address"  (setAddress) = "getAddress($event)" googleplace/>
           `    
   })
   export class AppComponent {
       public address : Object;
       getAddress(place:Object) {       
           this.address = place['formatted_address'];
           var location = place['geometry']['location'];
           var lat =  location.lat();
           var lng = location.lng();
           console.log("Address Object", place);
       }
   }

Keywords

FAQs

Package last updated on 18 Jun 2018

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