Learing AngularJS by some examples