I see in some native tools in javascript
, the redo and undo option, as if it were a Ctrl + z
and Ctrl + y
, but are graphical tools and not forms.
I thought of something like ...
estáticos
. objeto
to undo along with the component code. Ctrl + Z
the last element is removed from the objeto
of undo and placed on another responsible for restoring, and moving its initial value is changed at the end and compiled into the component with angular
and vise versa. I've done a few tests and it's totally possible to do this, however the work will be giant because everything is created dynamically. Is there any other way to implement this? using cache or any library? I did not find anything related on the internet.