title: Angular-UI typeahead results not showing in dropdown
body: <p>Im using Angular-ui typeahead component to hit an autocomplete API, and I'm parsing the data I get back into an array called <code>resp</code>.  However, Im not seeing the data getting passed to the autocomplete dropdown in the UI. BTW, the controller has a console.log that displays the data correctly, so i know its returning from the api call. </p>
  
  <p>Here is my controller function:</p>
  
  <pre class="lang-js prettyprint-override"><code>$scope.getLocationForSearch = function(locationString){
  
      $scope.locationString = locationString;
      var url = '/autoComplete/' + locationString ;
      $http({
          method: 'GET',
          url: url            
      }).then(function successCallback(response) {
          console.clear();
          var resp = response.data.RESULTS.map(function(item){
              console.log(item.name);
              return item.name;
          });
  
          return resp;
  
        }, function errorCallback(response) {
          console.log(response); 
      });     
  }
  </code></pre>
  
  <p>and in my HTML:</p>
  
  
  
  <pre class="lang-html prettyprint-override"><code>    &lt;div class="input-group"&gt;
          &lt;input 
              type="text" class="form-control" ng-model="asyncSelected" placeholder="Search city or zip code"
              uib-typeahead="item for item in getLocationForSearch($viewValue)"/&gt;
          &lt;i ng-show="loadingLocations" class="glyphicon glyphicon-refresh"&gt;&lt;/i&gt;
          &lt;div ng-show="noResults"&gt;
            &lt;i class="glyphicon glyphicon-remove"&gt;&lt;/i&gt; No Results Found
          &lt;/div&gt;
          &lt;span class="input-group-btn"&gt;
              &lt;button class="btn btn-default" name="search" ng-model="asyncSelected" type="submit" ng-click="getWeather(asyncSelected)"&gt;
                  &lt;span class="glyphicon glyphicon-search" aria-hidden="true"&gt;&lt;/span&gt;
              &lt;/button&gt;
          &lt;/span&gt;
      &lt;/div&gt;&lt;!-- /input-group --&gt;
  </code></pre>
  
  <p>There are several posts on here for this same issue but none really answer my specific problem.  Any help is appreciated.</p>