Angular.js Resource Component