AngularJS demo of UI validation and unit-testing