Skip to content

Instantly share code, notes, and snippets.

@mdmoin7
Created March 18, 2019 14:50
Show Gist options
  • Save mdmoin7/35509e0de6abd3059571f4f47b482589 to your computer and use it in GitHub Desktop.
Save mdmoin7/35509e0de6abd3059571f4f47b482589 to your computer and use it in GitHub Desktop.
<div *ngIf="addressObj.get('pincode').touched">
<small *ngIf="addressObj.get('pincode').hasError('required')">Pincode is required</small>
<small *ngIf="addressObj.get('pincode').hasError('zipCode')">
allowed pincode is {{addressObj.get('pincode').getError('zipCode').validCode}}
</small>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment