Angular.js implementation incomplete