title: typeahead not returning values
body: <p>I have a bootstrap typeahead</p>
  
  <pre><code>    &lt;input type="text" ng-model="selected" ng-change="invalid_tickr=false" typeahead="tickr for tickr in tickrValues($viewValue)" class="form-control" required autofocus&gt;
  </code></pre>
  
  <p>controller.js</p>
  
  <pre><code>    $scope.tickrValues = function(val) {   
        var url = // some url
        $ajax.get(url).success(function(data, status, headers, config) {
          console.log(data);
          return data.map(function(item) {
              console.log(item);
              console.log(item.value);
              return item.value;
          });
      });
     }
  </code></pre>
  
  <p>This function is printing item.value correctly to the console but it's not returning the values.</p>