Forms

An application without user input is just a page. Capturing input from the user is the cornerstone of any application. In many cases, this means dealing with forms and all of their complexities.

Angular 2 is much more flexible than Angular 1 for handling forms — we are no longer restricted to relying solely on ngModel. Instead, we are given degrees of simplicity and power, depending on the form's purpose.

  • Template-Driven Forms use built-in directives to create straightforward form components with minimal code.
  • FormBuilder uses the provided APIs to handle more complex validation and subforms.

results matching ""

    No results matching ""