title: how to get value from dropdown using angular js
body: <p>I need to get a select value from a dropdown using angular.js </p>
  
  <p>angular code:</p>
  
  <pre><code>var sbAdmin2 = angular.module('sbAdmin2',[]);
  sbAdmin2.controller('dropdownCtrl', function($scope,$http){
      $scope.chnagecustomer= function() {
          $scope.value=$scope.dropdown;
          console.log($scope.value);
      };
  });
  </code></pre>
  
  <p>html code:</p>
  
  <pre><code>&lt;select 
    ng-controller="dropdownCtrl" 
    class="form-control" 
    ng-change="chnagecustomer()" 
    ng-model="selectedPerson" 
    id="p_client_main" 
    name="p_client_main" 
    tabindex="2"&gt;
      &lt;option value=""&gt; &lt;/option&gt;
      &lt;option value="a"&gt;a&lt;/option&gt;
      &lt;option value="b"&gt;b&lt;/option&gt;
      &lt;option value="c"&gt;c&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <ul>
  <li>in jquery <code>.val()</code> would work to get dropdown value which is selected</li>
  <li>but I need to know the angular way.</li>
  <li>I'm new in angular. Any help is much appreciated.</li>
  </ul>