Meanderings in Angular.js