Snippets from my quest to understanding AngularJS