AngularJS Todo example ported.