Dereferencing objects with angularJS' $resource?
stackoverflow.com