title: In AngularJS how to use datalist
body: <pre><code>&lt;script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.26/angular.min.js"&gt;&lt;/script&gt;
  
  &lt;div ng-app="" ng-controller="cntryController"&gt;
      &lt;input list="testList" type="" ng-model="SelectedDoctor" ng-change="LoadSessionData(SelectedDoctor)" /&gt;
      &lt;datalist id="testList"&gt;
          &lt;option value="Dr.Test1" ng-selected="selected"&gt;&lt;/option&gt;
          &lt;option value="Dr.Test2"&gt;&lt;/option&gt;
          &lt;option value="Dr.Test2"&gt;&lt;/option&gt;
      &lt;/datalist&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Controller</p>
  
  <pre><code>function cntryController($scope) {
      $scope.LoadSessionData = function(val) {
          console.log(val);
      };
  }
  </code></pre>
  
  <p>check this Link <a href="http://jsbin.com/jifibugeke/1/edit?html,js,console,output" rel="noreferrer">http://jsbin.com/jifibugeke/1/edit?html,js,console,output</a></p>
  
  <p>Above  mention datalist sample code  and URL using angularjs, here my problem is what ever i am typing the text box, in controller add by added every words,in my requirement in datalist selected details only shows in controller,  </p>