Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bobey/angular-undo-redo
Angular Undo Redo functionality with the Command Pattern
https://github.com/bobey/angular-undo-redo
Last synced: 2 months ago
JSON representation
Angular Undo Redo functionality with the Command Pattern
- Host: GitHub
- URL: https://github.com/bobey/angular-undo-redo
- Owner: bobey
- License: mit
- Created: 2014-11-15T14:31:07.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-24T09:53:18.000Z (about 10 years ago)
- Last Synced: 2023-03-12T01:42:29.401Z (almost 2 years ago)
- Language: JavaScript
- Size: 512 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular Undo Redo
This repository shows how to implement an undo/redo functionality in an AngularJS frontend using the [Command Pattern](http://en.wikipedia.org/wiki/Command_pattern):
> If all user actions in a program are implemented as command objects, the program can keep a stack of the most recently executed commands. When the user wants to undo a command, the program simply pops the most recent command object and executes its undo() method.
This is code support for an article on my blog: [http://blog.overnetcity.com](http://blog.overnetcity.com/2014/11/18/undo-redo-angularjs-command-pattern/)
## Try it online!
[Angular Undo / redo demo](http://bobey.github.io/angular-undo-redo)
## Fork it!
```
git clone https://github.com/bobey/angular-undo-redo.git && cd angular-undo-redo
npm install
bower install
grunt
```And open `public/index.html`. That's it!