Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
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

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