I am having a column named Ordered in a show page which prints Order number as :
<div class="col-sm-2 detail" ng-if="clTxn.ordered">
<a ng-if="relTransaction.txnType == 'Order'" ng-repeat="relTransaction in clTxn.relTransactions" ui-sref="order({id: relTransaction.txnId })">{{'Ord#'}}</a>
<div class="title">Ordered</div>
</div>
It is working fine with order, now I need to add the same when relTransaction.txnType == 'Purchase'.
I am new to angular but I tried to put the same above Order with Purchase but didn't worked for me.
Note both Order and Purchase must be under this condition:
'ng-if' => 'clTxn.ordered'
Please help me out.
'ng-if' => "relTransaction.txnType == 'Order'as shown in question.