title: AngularJS + UI Bootstrap Typeahead implementation issue
body: <p>I am trying to implement Typeahead using my Web Api controller by adopting to this code, that works fine:</p>
  
  <p>HTML</p>
  
  <pre><code>&lt;div class='container-fluid' ng-controller="TypeaheadCtrl2"&gt;
      &lt;pre&gt;Model: {{result | json}}&lt;/pre&gt;
      &lt;input type="text" ng-model="result" typeahead="suggestion for suggestion in cities($viewValue)"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Controller in app.js</p>
  
  <pre><code>myApp.controller('TypeaheadCtrl2', function ($scope, $http, limitToFilter) {
  
      //http://www.geobytes.com/free-ajax-cities-jsonp-api.htm
  
      $scope.cities = function (cityName) {
          return $http.jsonp("http://gd.geobytes.com/AutoCompleteCity?callback=JSON_CALLBACK &amp;filter=US&amp;q=" + cityName).then(function (response) {
              return limitToFilter(response.data, 15);
          });
      };
  });
  </code></pre>
  
  <p>However when I change <code>return $http.jsonp("http://gd.geobytes.com/AutoCompleteCity?callback=JSON_CALLBACK &amp;filter=US&amp;q=" + cityName)</code> to call my own WebApi controller <code>return $http.jsonp("api/airports/" + cityName)</code> it stops working.</p>
  
  <p>But if I call my Web Api directly, like <code>http://mysite:80/api/airports/los</code> it returns this json:</p>
  
  <pre><code>["San Martin DeLos Andes (CPC)","San Carlos DeBariloche (BRC)","Los Menucos (LMD)","Paso De Los Libres (AOL)","Barbelos (BAZ)","Los Angeles (LSQ)","Los Chiles (LSL)","Mali Losinj (LSZ)","Milos (MLO)","Volos (VOL)","Paso Caballos (PCG)","Los Mochis (LMM)","Vilanculos (VNX)","San Carlos (NCR)","Lagos (LOS)","Losuia (LSA)","Lossiemouth (LMO)","Los Angeles (JID)","Los Angeles (JBP)","Los Alamos (LAM)","Los Angeles (LAX)","Los Banos (LSN)","Lost Harbor (LHB)","Lost River (LSR)","San Carlos (SQL)","Los Angeles, CA (VNY)","Los Angeles (WHP)","Los Roques (LRV)"]
  </code></pre>
  
  <p>which is in exactly the same format as returned by <code>http://gd.geobytes.com/AutoCompleteCity?filter=US&amp;q=los</code>:</p>
  
  <pre><code>["Los Alamitos, CA, United States","Los Alamos, CA, United States","Los Alamos, NM, United States","Los Altos, CA, United States","Los Angeles, CA, United States","Los Banos, CA, United States","Los Ebanos, TX, United States","Los Fresnos, TX, United States","Los Gatos, CA, United States","Los Indios, TX, United States","Los Lunas, NM, United States","Los Molinos, CA, United States","Los Ojos, NM, United States","Los Olivos, CA, United States","Los Osos, CA, United States","Losantville, IN, United States","Lost City, WV, United States","Lost Creek, KY, United States","Lost Creek, PA, United States","Lost Creek, WV, United States"]
  </code></pre>
  
  <p>Please advise.</p>