title: Angularjs typeahead example is always not working
body: <p>I am trying to use a case on angularjs typeahead now, but it is always not working, am I forget to import some js files?  please help me out, thank you</p>
  
  <p>Html:</p>
  
  <pre><code> &lt;!doctype html&gt;
  &lt;html ng-app="search"&gt;
  
  &lt;head&gt;
      &lt;link rel="stylesheet" href="bootstrap.min.css"&gt;
      &lt;script src="jquery.min.js"&gt;&lt;/script&gt;
      &lt;script src="bootstrap.min.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" href="style.css" /&gt;
      &lt;script type="text/javascript" src="angular.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="ui-bootstrap-tpls-1.3.3.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="app.js"&gt;&lt;/script&gt;
      &lt;title&gt;Search&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body ng-controller="SearchController as search"&gt;
          &lt;h4&gt;Static arrays&lt;/h4&gt;{{search.states}}
          &lt;pre&gt;Model: {{selected | json}}&lt;/pre&gt;
          &lt;input type="text" ng-change="onedit()" ng-model="selected" uib-typeahead="state for state in search.states | filter:$viewValue | limitTo:8"&gt;
  </code></pre>
  
  <p>JS:</p>
  
  <pre><code> (function () {
  
      var app = angular.module('search', []);
  
      app.controller('SearchController', ['$window', '$http', function ($window, $http){                     
          var search = this;
          search.states = ['Alabama', 'Alaska', 'Arizona', 'Arkansas', 'California', 'Colorado', 'Connecticut', 'Delaware', 'Florida', 'Georgia', 'Hawaii', 'Idaho', 'Illinois', 'Indiana', 'Iowa', 'Kansas', 'Kentucky', 'Louisiana', 'Maine', 'Maryland', 'Massachusetts', 'Michigan', 'Minnesota', 'Mississippi', 'Missouri', 'Montana', 'Nebraska', 'Nevada', 'New Hampshire', 'New Jersey', 'New Mexico', 'New York', 'North Dakota', 'North Carolina', 'Ohio', 'Oklahoma', 'Oregon', 'Pennsylvania', 'Rhode Island', 'South Carolina', 'South Dakota', 'Tennessee', 'Texas', 'Utah', 'Vermont', 'Virginia', 'Washington', 'West Virginia', 'Wisconsin', 'Wyoming'];
  </code></pre>