Installed angular-history, implemented history (undo/redo) on query data.