Hey there, I'm currently trying to utilize ng-if within ng-repeat. My condition is if {{dev[2]}} == ""
. If this condition is met, I want to display <td>Non Valide</td>
; otherwise, I simply want to display the data inside 'dev'. I've searched for examples but haven't found anything fitting my specific case, as I am attempting to use if-else logic. Is it even possible to achieve this? Here's the code snippet I'm working with:
<table class="table table-bordered" >
<thead><tr class="infoti" >
<th>Id Dev</th>
<th>Nom Dev </th>
<th>Nom Ecu</th>
<th>Etat</th>
<th>Action</th>
<tr>
</thead>
<tbody>
<tr dir-paginate=" dev in devs | itemsPerPage:7 ">
<td >{{dev[0]}}</td>
<td>{{dev[1]}}</td>
<td>{{dev[2]}}</td>
<td ng-if({{dev[2]}} != "") >non validé</td>
<td><button class="btn btn-gray" ng-click="displaydata(dev[0])" data-toggle="modal" data-target="#myModal" >Validé</button></td>
</tr>
</tbody>
</table>
Any assistance would be greatly appreciated.