AngularJS demo code