A todo example in AngularJS