angularjs - Angular: How to perform search on button click -
this sample code user write data in textbox , result filter accordingly how can filter data clicking button? <div ng-app="myapp" ng-controller="mycontroller"> <label>field: <select ng-model="selectedfieldname"> <option value="">--select account--</option> <option ng-repeat="(fieldname,fieldvalue) in customer[0]" ng-value="fieldname | uppercase">{{fieldname | uppercase}}</option> </select> </label> <label>data: <input ng-model="searchtext"></label> <table class="table table-striped table-bordered"> <tr> <td>id</td> <td>first name</td> <td>last name</td> <td>salary</td> <td>date of birth</td> <td>city</td> <td>phone</td> ...