Template-driven forms – pros

Template-driven forms can be very useful and helpful if the forms in our application are simple and straight forward with less metadata and validations. In this section we will highlight the pros of using template-driven forms in our applications: 

  • Template-driven forms are very easy to use
  • Suitable for simple and straightforward use cases 
  • Easy-to-use two-way data binding, so there is minimal code and complexity
  • Angular automatically tracks the form and input element state (you can disable the Submit button if the form's state is not complete)
  • Not recommended if the form has complex form validations or require custom form validations
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.216.40.129