Angular 5 Reactive Forms And Validations
Angular 5 Reactive Forms And Validations
As we have seen in the last article, there are two types of form development approach that we use in Angular 5. The first one is template-driven and the other one is the reactive forms approach. Let us explore what are reactive forms and how to validate these in Angular 5.
What are reactive forms?
This approach uses the Reactive forms for developing the forms which favor the explicit management of data between the UI and the Model. With this approach, we create the tree of Angular form controls and bind them in the native form controls. As we can create the form controls directly in the component, it makes it a bit easier to push the data between the data models and the UI elements.
... read the whole story at www.c-sharpcorner.com.