submit vs ngSubmit in Angular 2

from this tutorial, https://blog.thoughtram.io/angular/2016/03/21/template-driven-forms-in-angular-2.html

However, ngSubmit ensures that the form doesn’t submit when the
handler code throws (which is the default behaviour of submit) and
causes an actual http post request. Let’s use ngSubmit instead as this
is the best practice:

Leave a Comment