Copied sample To Do list code from AngularJS site.