title: how to make dropdown with input field in angular.js
body: <p>i am making dropdown list with input field in angular.js but got no success</p>
  
  <p>the code which i using..</p>
  
  <pre><code>&lt;div ng-app="" ng-controller="namesCtrl"&gt;
              &lt;h2&gt;filter input&lt;/h2&gt;
              &lt;input type="text" ng-model="test"/&gt;
              &lt;ul&gt;
                  &lt;li ng-repeat="x in names | filter:test | orderBy : 'name'"&gt;
                      {{ x.name + ',' + x.country }}
                  &lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
  
      &lt;script&gt;
      var app = angular.module('myApp', []);
      app.controller('myCtrl', function($scope) {
          $scope.firstName= "";
          $scope.lastName= "";
      });
  &lt;/script&gt;
  &lt;script src="namescontrol.js"&gt;&lt;/script&gt;
  </code></pre>