I want to create a form where the user will enter his email. I\'d like to validate email format client-side.
Is there any generic email validator in Angular 2?
Also you can use ng2-validation-manager for reactive forms which makes validation match easier:
this.form = new ValidationManager({ 'email' : 'required|email', 'password' : 'required|rangeLength:8,50' });
and the view:
Email {{form.getError('email')}} Password {{form.getError('password')}} Submit