Generates an Angular.js resource with local data.