title: Angularjs: a Service that serves multiple $resource urls / data sources?
body: <p>I have an Angular service/provider that serves json data to my controller which works great:</p>
  
  <pre><code>    angular.module('myApp.services', ['ngResource']).
        factory("statesProvider", function($resource){
        return $resource('../data/states.json', {}, {
          query: {method: 'GET', params: {}, isArray: false}
        });
      });
  </code></pre>
  
  <p><strong>But</strong> I also need to serve json data to the same controller from another file <code>counties.json</code>.</p>
  
  <p>Where can I find out how to I write a service that serves both files to my controller?</p>