I am getting list of cases from backend and I want to display some cases based on the a few conditions such that each case's inspectionStage field and numeric values. I want to only display cases in the row which have inspectionStage=0.
I have tried:
<tr ng-repeat="qcCase in qcCases | filter: filter.case" ng-if="{{inspectionStage==0}}">
But it is not working, I have also tried with ng-show
under <tr>
tag but it did not work.
Here is my code sinppet:
<div class="panel-body">
<div class="row">
<div class="col-md-4">
<div ng-cloak style="padding-left: 15px; padding-top: 15px; padding-bottom: 5px;">
<md-input-container class="md-block"> <label>Search Cases</label> <input ng-model="filter.case">
</md-input-container>
</div>
</div>
</div>
<md-content>
<md-tabs md-dynamic-height md-border-bottom>
<md-tab label="Not Started">
<md-content class="md-padding">
<table ng-table="tableParams" class="table table-striped table-bordered table-hover">
<tr ng-repeat="qcCase in qcCases | filter: filter.case">
<td data-title="'#'">{{$index + 1}}</td>
<td data-title="'Case ID'">{{qcCase.id}}</td>
</tr>
</table>
</md-content>
</md-tab>
</md-tabs>
</md-content>
</div>
Kindly note- filter.case
under <tr>
tag is required to search the cases from list. I want to add a condition somewhere based on inspectionStage in such a way that if the inspectionStage is 0 then only that row should display that data.