postal-code-autocomplete
TypeScript icon, indicating that this package has built-in type declarations

0.0.8 • Public • Published

Postal Code Autocomplete | Autocomplete de códigos postales

Install

npm install postal-code-autocomplete --save

Component

How use

<ng-postal-code-autocomplete [country]="country" [(zipCode)]="model"></ng-postal-code-autocomplete>

Inputs

country | string | default: es

Service

How to use

Inject service PostalCodeAutocomplete, example:

  constructor(private readonly postalCode: PostalCodeAutocompleteService){
    console.log(postalCode.getZipCodeByCode(this.country,'23009'))
  }

Methods

getZipCodeByCity(country: string = 'es', city: string): ZipCode
 getZipCodeByCode(country: string = 'es', code: string): ZipCode

Package Sidebar

Install

npm i postal-code-autocomplete

Weekly Downloads

3

Version

0.0.8

License

MIT

Unpacked Size

14.9 MB

Total Files

25

Last publish

Collaborators

  • albertot_dev