Prevent sending data to model if field is invalid in Angular 2
I have a templated form with two way binding and data validation
<input [(ngModel)]="myObj.name"someValidator>
How can I prevent data from being sent on behalf of the input if there are some validation errors? In my model, I only want to have correct data from the form.