How to Combine Add and Edit Forms in Angular

Create/update form with smart/dumb components

Michael Karén
4 min readJan 24, 2022

--

This article demonstrates how to build a reusable form component that supports add and edit modes. We do this by using the container and presentation components architecture. The goal is not about teaching forms, so we keep it as simple as possible using reactive forms.

--

--

Michael Karén

Frontend Architect • JavaScript Enthusiast • Educative.io Author • ngVikings organizer.