angular - Right way to use Reactive Forms dynamically -
i have complex nested registration form. every registration block(e.g. general info, contacts, security info) separate formgroup own logic. saw many examples of using reactive forms add formgroup array dynamically same field template existed already(add 1 more phone or address). in case want compose form dynamically different parts based on user choice of registration type. example, have such registration blocks: general info (g) , contacts (c), address info(a) payment information(p), , security(s). so, if user chooses first registration type, gcsp form, otherwise - gcas. simplest approach use conditional block in templates , code looks lame. appreciate ideas or advices. in advance.
Comments
Post a Comment