As a newcomer to Angular, I've noticed that most courses and tutorials recommend using a model or interface for form data. However, I have found it more efficient and straightforward to just use a generic variable with two-way data binding.
Could someone please clarify the importance of defining a model for form data?
Instead of utilizing:
attorney: any = {
};
Many tutorials suggest:
attorney: Attorney = {...}
//where Attorney is a class with various parameters
Feel free to check out my code implementation below.
https://stackblitz.com/edit/angular-xkcgng?file=app%2Fapp.component.html