Code examples from a ultimate guide to learn AngularJS