Small pieces of code for learning AngularJS