title: how to search using two criterions( select and input)
body: <p>i'm new in angular js , and i'm trying to search in a my table , using a selectbox.
  I want that my search will be based on two xriterion: ( what i will write on the input item , and on what i will select )
  for exemple if i will select ( search by name ) , i should search just based on name:
  here is my code :</p>
  
  <pre><code>&lt;div ng-controller="mycontrolleur"&gt;
  &lt;input type='text' ng-model="searchT"&gt;
      &lt;select ng-model="choix"&gt;
      &lt;option value='nom'&gt;search by name&lt;/option&gt;
      &lt;option value='cin'&gt;search by CIN&lt;/option&gt;        
  
      &lt;/select&gt;
          &lt;table border="1"&gt;
  &lt;tr&gt;&lt;td&gt;Nom&lt;/td&gt;&lt;td&gt;CIN&lt;/td&gt;&lt;/tr&gt;
  &lt;tr ng-repeat="x in students|filter:searchT|orderBy:choix"&gt;
  &lt;td&gt;{{x.nom}}  &lt;/td&gt;&lt;td&gt;{{x.cin}}&lt;/td&gt;&lt;/tr&gt;
  
  &lt;/table&gt;
  
  &lt;/div&gt; 
  
  &lt;script src='angular.min.js'&gt;&lt;/script&gt;
  &lt;script&gt;
  var app=angular.module('searchApp',[]);
      app.controller('mycontrolleur',function($scope)
      {
          $scope.students=[{nom:'marwen',cin:11155},
                     {nom:'mounir',cin:15885},
                     {nom:'maryem',cin:25155},
                     {nom:'ahmed',cin:77555},
                     {nom:'amel',cin:88155}
                     ];           
                     });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>thank you for your help guys :)</p>