मेरे पास एक टेबल है। मैं तालिका को फ़िल्टर करना चाहता हूं, इस पर निर्भर करता है कि एक चयन बॉक्स में कौन सा मूल्य चुना गया है। तालिका में तुलना बॉक्स में तुलना मूल्य {{pipe.pipe_id}} और {{dimension.pipe_id}} है। मान लीजिए इसके लिए एक आसान समाधान है? कोई उपाय?कोणीय जेएस, एक चयन बॉक्स के साथ फ़िल्टर तालिका
Pipe:
<select id="select01">
<option ng-repeat="pipe in pipes">{{pipe.code}} - {{pipe.title_en}}</option>
</select>
<table class="table table-striped">
<thead>
<tr>
<th>Pipe</th>
<th>Size</th>
<th>Inner diameter</th>
<th>Outer diameter</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="dimension in dimensions" >
<td>{{dimension.pipe_id}}</td>
<td>{{dimension.nominalsize}}</td>
<td>{{dimension.innerdiameter}}</td>
<td>{{dimension.outerdiameter}}</td>
</tr>
</tbody>
</table>
एक चयन बॉक्स के साथ, एनजी-विकल्प का उपयोग करना सबसे अच्छा है। https://docs.angularjs.org/api/ng/directive/select – Jared