npm install postal-code-autocomplete --save
<ng-postal-code-autocomplete [country]="country" [(zipCode)]="model"></ng-postal-code-autocomplete>
country | string | default: es
Inject service PostalCodeAutocomplete, example:
constructor(private readonly postalCode: PostalCodeAutocompleteService){
console.log(postalCode.getZipCodeByCode(this.country,'23009'))
}
getZipCodeByCity(country: string = 'es', city: string): ZipCode
getZipCodeByCode(country: string = 'es', code: string): ZipCode