Code to someone starting with AngularJS (follows some best practices)