I am developing lot of examples for Angular 2, find those examples on Github.
Here are some important examples:
I will be updating these examples as Angular 2 progresses.
In this article we are not discussing how to develop forms in Angular 2, we are going to discuss how to write a custom validator for Angular 2 forms. Forms API in Angular 2 has some built-in validators already, here is an model driven form example with built-in required validator.
Initial structure of the application: