🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

ng2-address

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-address

This Angular 2 component helps the user to fill in street address. It uses Googles Places API to get suggestions, and shows postalcode or housenumber fields if that info was missing from the returned autocomplete suggestion.

0.1.4
latest
Source
npm
Version published
Maintainers
1
Created
Source

ng2-address

This Angular 2 component helps the user to fill in street address. It uses Googles Places API to get suggestions, and shows postalcode or housenumber fields if that info was missing from the returned autocomplete suggestion.

If you choose to use the Google Autocomplete service, make sure you change the Google Maps API key to your own.

Installation

npm install ng2-address --save

From within your typescript project, it's possible to just import from the 'ng2-address' module.

import {AddressAutocompleteComponent} from 'ng2-address';

See /example folder.

Example

The main component of the lib is AddressAutocompleteComponent.

<address-autocomplete
  [country]="'NL'"
  [placeholderStreet]="'SnappCar Street 6...'"
  [placeholderHouseNumber]="'housenumber...'"
  [placeholderPostalCode]="'postalcode...'"
  (onAddress)="addressChangedHandler">
</address-autocomplete>

FAQs

Package last updated on 04 Apr 2016

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