Todo app in Angular.js with localStorage