AngularJS example of single-model application