Create form with Components in Angular 2

1

I'm starting with Angular 2 and I have a doubt, I believe simple, in creating forms:

For example, on a system that contains the following entries:

  • Customers
  • Suppliers
  • Carriers

Each register will have its own fields and will also have shared fields such as address fields. For this I could create a Component and use it in the respective forms? How would you send these forms to the objects of the class using Reactive Form ? Is this the right thing to do, or should I re-create the address fields in each form?

    
asked by anonymous 08.06.2017 / 22:35

0 answers