title: Filter the values using angular js
body: <p>I have a web application where I have many forms which i have created using bootstrap modal. </p>
  
  <p>In my application I have a search textbox with filter button.
  When I am adding a text and filter the list as per that I get the result (for filter I am using ng-click=search('F') . 
  The result has a edit and delete buttons for each. Now when I open the result data for editing(using edit button) then close it with top right "X" button the ng-click = reset() is called and the filtered values go off. </p>
  
  <p>I want the the filtered values to remain even after i open the files for edit and close it.
  As the code is confidential I can just put up the code for "X" button</p>
  
  <pre><code> &lt;button type="button" class="close" data-dismiss="modal" aria-hidden="true" data-ng-click="Reset()"&gt;&amp;times;&lt;/button&gt;
  </code></pre>
  
  <p>the code for search filter button is:</p>
  
  <pre><code> &lt;button class="btn btn-primary" type="button" id="btnFilter" ng-click="Search('F')"&gt;
                                          &amp;nbsp;&amp;nbsp; Filter &amp;nbsp;&amp;nbsp;
                                      &lt;/button&gt;
  </code></pre>
  
  <p>Hope I am clear. Please let me know if any other clarification required. I need help with this issue. Thanks in advance. </p>