title: passing parameters to resource factory in angularjs from the controller not working
body: <p>passing parameters to $resource in angularjs. </p>
  
  <p>I have a  search button in the UI upon clicking which I want to pass the input parameter to the $resource which would call the REST service in the backend.</p>
  
  <p>when I pass a string value in the .query it works perfectly fine, but the @issueinput is not getting resolved to the input value.</p>
  
  <p>this is the app.js</p>
  
  <pre><code>var myApp = angular.module('myApp',['ui.router', 'ngResource']);
  
  myApp.factory('SearchService',function($resource){
      return $resource("http://localhost:8081/support/api/search/:issuename");
  });
  </code></pre>
  
  <p>this is the controller</p>
  
  <pre><code>angular
    .module('myApp')
    .controller('searchCtrl',['$scope', '$window','SearchService', function($scope, $window, SearchService){
  
       $scope.data={};
  
      $scope.search = function(issueinput){    
       SearchService.query({issuename:'@issueinput'},function(response){
              $scope.data.issues = response; 
           });
      };
    }  
    ]);
  </code></pre>
  
  <p>this is the UI html</p>
  
  <pre><code>&lt;html&gt;
  &lt;div id="searchpage"&gt;
       &lt;label&gt;Search&lt;/label&gt; :&lt;input data-ng-model="issueinput"&gt;&lt;/input&gt; {{issueinput}}  
       &lt;br/&gt;
       &lt;br/&gt;
       &lt;br/&gt;
       &lt;button data-ng-click="search(issueinput)"&gt;Search&lt;/button&gt;
       &lt;br/&gt;
       &lt;br/&gt;
  &lt;ul&gt;
    &lt;li data-ng-repeat="s in data.issues"&gt;{{s.issueName}} : {{s.issueDescription}}&lt;/li&gt;
  &lt;/ul&gt;
  
  
  &lt;/div&gt;
  &lt;/html&gt;
  </code></pre>