title: how to filter the data from text box in angularjs
body: <p>**Hi,i am filtering the array data from textbox but the code is not working properly can any one help me please.the data from back end</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> self.AdminLineDetails = function(data) {
     $scope.details = [];
     $scope.details = data.GoalData;
     console.log(data);
   }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="row"&gt;
    &lt;div class="col-md-12"&gt;
      &lt;input ng-model="query" type="text" class="form-control" placeholder="Filter by name or number"&gt;
    &lt;/div&gt;
    &lt;div&gt;
      &lt;tbody&gt;
        &lt;tr ng-repeat="detail in details|filter:query"&gt;
          &lt;td&gt;&lt;a href="#"&gt;{{detail.firstName}}&lt;/a&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;a href="#"&gt;{{detail.lastName}}&lt;/a&gt;
          &lt;/td&gt;
          &lt;td&gt;&lt;a href="#"&gt;{{detail.mdn}}&lt;/a&gt;
          &lt;/td&gt;
        &lt;/tr&gt;
  
      &lt;/tbody&gt;
    &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>**</p>