I am designing a settings page. I want to design two different form in the same component. one for profile update, one for password update. Is it possible to use two form element in the same component?
I am designing a settings page. I want to design two different form in the same component. one for profile update, one for password update. Is it possible to use two form element in the same component?
Yes, You can have multiple forms in one screen if it's needed. Defined multiple reactive forms or template driven forms as needed. It's supported by Angular. If your two subcomponents do not have to do anything with each other, you can have two forms, one each in one component. if the forms are tied to each other at the time of initialization ( use data object etc) then you can have them in same component. No problem.. Which ever makes your life easier.