Our great sponsors
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
Here is my clone pipe https://github.com/adriandavidbrand/ngx-ez/blob/master/projects/ngx-ez/src/lib/pipes/clone/clone.pipe.ts and the clone function it uses https://github.com/adriandavidbrand/ngx-ez/blob/master/projects/ez-functions/src/lib/clone.ts
Of course having a clone of the data is nice to revert changes, and with Angular 13 you can use form reset to initial value if you are using strongly typed forms if I read this pull request correctly.