Angular and Memento Pattern: Undo and Redo