fix infinite $digest cycle

make 'allGroceries()' idempotent
https://github.com/angular/angular.js/issues/705