Append search query to $http.get query in AngularJS
<p>I have had a few attempts at appending an order # entered as a search query to a $http.get url in my app, but with no joy.</p>

<p>If I put the full path of a specific order number it retrieves that order <a href="http://example.com/api/booking/get/orders/121137" rel="nofollow">http://example.com/api/booking/get/orders/121137</a></p>

<p>I added the search query on list.html in the controller as $scope.query = query;</p>

<pre><code> .controller('ListController', ['$scope', '$http', '$state','$cordovaBluetoothSerial', '$window', '$location', function($scope, $http, $state, $cordovaBluetoothSerial, $window, $location) {
      //$http.get('http://example.com/api/booking/get/orders/').success(function(data) {
      //$http({ url: 'http://example.com/api/booking/orders/', method: "GET", params: {query} }).success(function(data) {
      $http.get('http://example.com/api/booking/get/orders/+ $scope.query').success(function(data) {
          //$http.get('http://example.com/api/booking/get/orders/121137').success(function(data) {
          //$http.get('js/121137.json').success(function(data) {
          $scope.orders = [ data.data ];
          $scope.query = query;
</code></pre>

<p>Here is the code in a <a href="https://plnkr.co/edit/Nc19DVjBWt7cepwMNCNH?p=catalogue" rel="nofollow">plnkr</a>. Any suggestions on more <code>$http.get</code> urls/syntax to try?</p>