title: $routeParam does not pass variable through url with $resource factory
body: <p>Code</p>
  
  <pre><code>var app= angular.module('myApp', ['ngRoute', 'ngResource']);
  
  app.factory('Greeter', ['$resource',function($resource){
    return $resource(
      'http://123.com/processor-url.php',{
        /*inputName:inputName,*/
        callback: 'JSON_CALLBACK'
      },{
        query: {method:'GET',isArray:true}
      });
  }]);
  
  app
  .controller('appointmentController', ['$scope','routeParams', 'Greeter',
    function($scope,$routeParams,Greeter){
      /*alert("yes");*/
      alert($routeParams);
      var x = Greeter.query({
          myvar: $routeParams
      });
      $scope.output = x;
  }]);
  
  app.controller('homeController', ['$scope', function($scope){
  }])
  
  
  /*Final Config After Loading Everything*/
  app.config(['$routeProvider', function($routeProvider) {
    $routeProvider.when('/appointments/:myvar', {templateUrl: 'appointments.html', controller: 'appointmentController'});
    $routeProvider.when('/home', {templateUrl: 'home.html', controller: 'homeController'});
    $routeProvider.otherwise({redirectTo: '/home'});
  }]);
  </code></pre>
  
  <p>Data (from <a href="http://123.com/processor-url.php" rel="nofollow">http://123.com/processor-url.php</a> when myvar=1066)</p>
  
  <pre><code>[
      {
          "myCodeId": "1066",
          "myCodeName": "session test",
          "myCodeOwner": "dvg",
          "myCodeBody": "",
          "myCodeTimesUsedCount": "0",
          "myCodeValueAsMins": "0",
          "myCodeCreateDate": "2014-07-30 11:04:58",
          "myCodeLastEditDate": "2014-07-30 11:05:43",
          "isSnippet": "0",
          "isDeleted": "0",
          "isMyFavorite": "0"
      }
  ]
  </code></pre>
  
  <p>I ran with this code + the data that suppose to be the result of myvar=1066.
  There will be error of </p>
  
  <pre><code>TypeError: Cannot read property 'query' of undefined
      at new &lt;anonymous&gt; (.../urlTest/:29:24)
  </code></pre>
  
  <p>on the line where is </p>
  
  <pre><code>var x = Greeter.query({
  </code></pre>
  
  <p>I wonder where the mistake is? As I did inject Greeter inside the controller itself.</p>
  
  <p><strong>==Update 1]===</strong></p>
  
  <p>I updated the code by fixing all routeParam into routeParams.</p>
  
  <p>Previous error is resolved. However, now the error becomes</p>
  
  <pre><code>Error: [$injector:unpr] Unknown provider: routeParamsProvider &lt;- routeParams
  http://errors.angularjs.org/1.2.0-rc.3/$injector/unpr?p0=routeParamsProvider%20%3C-%20routeParams
  </code></pre>
  
  <p>I maybe using the routeParams in a wrong way? Since what I wanted to do is that I assume routeParams will be the value of 1066 as thats what after the '/' symbol. Am I wrong in understanding its functionality?</p>
  
  <p>Thanks</p>