snippets moved to angularjs/ngResource