Angular provides two approaches to develop component UI. Either we can work in HTML for most of the requirement or we can work in javascript/typescript for most of the requirements. Each of these approaches in angular are known as template driven form approach or reactive form approach.
In angular for template driven approach we are required to import FormsModule and for reactive approach we are required ReactiveFormsModule to be imported.
FormsModule provides various directive which we are required in template-driven form approach where ReactiveForms module provides various directive which we need in reactive form approach.
we can work with any approach but it's recommended to stick with one which will make application bundle lighter also less error prone.
#angular #angular11 #formsmodule #reactiveformsmodule
Follow us on Twitter:
/ polestutorial
Follow us on Facebook:
/ tutorial-poles-103032308348727
Official Web Link:
http://tutorialpoles.com