title: dependent ng-models inputbox and select Angular js
body: <p>I am having one text box and one dropdown.
  I want filtering in ng-repeat section based on both of the above control.</p>
  
  <p>Means if i select name in dropdown and in text box as I typing the filtering should work based on name
  and if in dropdown if i select EployeeID then filtering should be work based on Employee.</p>
  
  <pre><code>&lt;input id="txtSearchText" ng-model="searchText"/&gt;
  &lt;select&gt;
      &lt;option&gt;name&lt;/option&gt;
      &lt;option&gt;EmployeeID&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;div ng-repeat="u in users"&gt;
  name :  {{u.name}}  ||  EID: {{u.eid}}  : 
  &lt;!-- here i want result --&gt;
  &lt;/div&gt;
  </code></pre>