title: add multiple factory in angularJS
body: <p>How can I add multiple factors in angularJS </p>
  
  <p>it show me wrong </p>
  
  <pre><code>(function() {
  'use strict';
  
  angular
      .module('projectsEvaluationApp')
      .factory('EvaluationsService', EvaluationsService);
  EvaluationsService.$inject = ['$resource'];
  
  function EvaluationsService ($resource) {
      var service = $resource('api/evaluations/:id', {}, {
          'get': {
              method: 'GET',
              isArray: true
          },
          'query': {
              method: 'GET',
              isArray: true,
          }
      });
  
      return service;
  }
    .factory('VisitService', VisitService);
  })();
  </code></pre>