title: AngularJS Factory Parameter
body: <p>I'm trying to send a parameter to an angularjs service. Here is my service code :</p>
  
  <pre><code>angular.module('skyBiometryServices', ['ngResource'])
  .factory('Facedetect', function( $resource ) {
      return $resource('skyBiometry/facedetect', {}, {
          query: {
              method : 'GET',
              params : {imageUrl: "http://cdn1-public.ladmedia.fr/var/public/storage/images/dossiers/presidentielles-2012/les-news-sur-les-presidentielles-2012/exclu-public-cauet-pour-ces-presidentielles-personne-ne-me-fait-rever-209063/2064021-1-fre-FR/Exclu-Public-Cauet-Pour-ces-presidentielles-personne-ne-me-fait-rever-!_portrait_w674.jpg"},
              isArray: false
          }
      })
  });
  </code></pre>
  
  <p>In my controller i have this : </p>
  
  <pre><code>function IndexCtrl($scope,Facedetect) {
      $scope.text = Facedetect.query();
  }
  </code></pre>
  
  <p>How can i send the imageurl into my services from the controller ? Something like this</p>
  
  <pre><code>function IndexCtrl($scope,Facedetect) {
      $scope.text = Facedetect.query('MY IMAGE URL');
  }
  </code></pre>
  
  <p>In advance thanks.</p>