title: autocomplete in angular with typehead
body: <p>I tried to do an autocomplete in angular with typehead, but it is not working.</p>
  
  <p>I downloaded the typehead.js from angularstrap page. </p>
  
  <p><strong>javascript:</strong></p>
  
  <pre><code>myApp.controller('myCtrl', ['$scope', 'myservice', function ($scope, myservice) {
      $scope.counter = 0;
      $scope.name= [];
      myservice.getData().then(function (msg) {
          $scope.name= msg.data.names;
      });
  
      $scope.input = "";
  
  }]);
  </code></pre>
  
  <p><strong>html:</strong></p>
  
  <pre><code> &lt;div ng-controller="myCtrl"&gt;
      &lt;input type="text" class="form-control" ng-model="input" 
        bs-options="name for name in names" bs-typeahead&gt;
  
   &lt;/div&gt;
  </code></pre>
  
  <p>What have I done wrong?</p>
  
  <p>If there is a better solution for autocomplete example pls tell me.
  thx in advance</p>