Angular 2 Custom Form Validator Blog Post - How to write a custom form validator in Angular 2 Run the example using below commands: npm install npm run start