Is there a way to re-use a form component via inheritance?

Discussão em 'Angular' iniciado por ak.leimrey, Setembro 16, 2025.

  1. ak.leimrey

    ak.leimrey Guest

    Dear Stackoverflow Users,

    I haven't seen any examples regarding this question, but I should probably mention my plan first.

    I have three different pages, that basically share many FormGroups. Their differences are basically minimal, maybe one or two FormControls. Of course, I could basically just copy paste the entire component and merely add the control I need, but I feel that it is a fairly impractical and messy solution. How would I properly approach this problem? And are any good resources regarding inheritance in Angular in general? The official page doesn't seem to make any mention from what I have seen in the hero course.

    Continue reading...

Compartilhe esta Página