IMPostCodeValidator

This is post (zip) code validator.

It has only one required parameter - country.

It is an enum that library imports.

Right now, next list of countries are available for the validator:


It can be imported in next way: import {{'{'}}IMPostCodeValidator{{'}'}} from 'im-angular-validators'; To pass country parameter, you have to import enum from library: import {{'{'}}IMCountryEnum{{'}'}} from 'im-angular-validators'; Also, error interface that validator returns can be imported as well: import {{'{'}}IMPostCodeErrorInterface{{'}'}} from 'im-angular-validators';


Please, take a look at the validator APIs for more detailed information.