1
votes

Can someone tell the differences between the and tags? Which is better to use with Angular 4?

1

1 Answers

2
votes

mat-form is the wrapper for HTML form in Angular Material. Material team customized the Form API's for Angular Material Form Controls, Validations. Each Form Control will follow the same syntax mat-input, mat-checkbox. Which is the wrapper for each Input form controls specific to Angular Material.

If you are using Angular Material Library, you need to use Material specific Input controls.

If you are using HTML5 Form with Angular, you can choose form.