I have an input and a table:-
<label>Label1:</label>
<input type="text" ng-model="a.value" ng-change ="filterArray(a.value)"/>
<table cellpadding="0" cellspacing="0">
<thead>
<tr>
<th>Branch Code</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="row in arr track by $index">
<td>{{row}}</td>
</tr>
</tbody>
</table>
I have an array:- a. arr = [11, 1001, 4300, AA61, 1234, B675]
What I want is when user input 1 then a.arr becomes [11, 1001, AA61, 1234] and it shows in table.
How to achieve this?