html - Filter the values using angular js -
i have web application have many forms have created using bootstrap modal.
in application have search textbox filter button. when adding text , filter list per result (for filter using ng-click=search('f') . result has edit , delete buttons each. when open result data editing(using edit button) close top right "x" button ng-click = reset() called , filtered values go off.
i want the filtered values remain after open files edit , close it. code confidential can put code "x" button
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" data-ng-click="reset()">×</button>
the code search filter button is:
<button class="btn btn-primary" type="button" id="btnfilter" ng-click="search('f')"> filter </button>
hope clear. please let me know if other clarification required. need issue. in advance.
if using custom search / filter logic , re-creating list after filter, have re-run search / filter logic after done edit / delete functionality.
had been simple ng-repeat filter, angular have done using 2-way binding , ng-repeat watchers.
but, in case, call search method @ end of edit , delete method
Comments
Post a Comment