I need one help.I need to check if the array has no value and display one message there using Angular.js.I am explaining my code below.
<table class="table table-bordered table-striped table-hover" id="dataTable">
<thead>
<tr>
<th>Sl. No</th>
<th>Date</th>
<th>
Info(Academic Year,Section,Subject,Semester)
</th>
<th>
Unit Name
</th>
<th>
Lecture Plan
</th>
<th>Action</th>
</tr>
</thead>
<div ng-if="viewIncompletePlanData.length>0">
<tbody id="detailsstockid">
<tr ng-repeat="p in viewIncompletePlanData">
<td>{{$index+1}}</td>
<td>{{p.date}}</td>
<td>{{p.session}},{{p.section_name}},{{p.subject_name}},{{p.semester}}</td>
<td>{{p.unit_name}}</td>
<td>{{p.plan}}</td>
<td>
<a >
<input type='button' class='btn btn-xs btn-success' value='Update' ng-click="">
</a>
</td>
</tr>
</tbody>
</div>
<div ng-if="viewIncompletePlanData.length==0">
<tr>
<center><p><b>No Record Matched</b></p></center>
</tr>
</div>
</table>
In the above code i need when viewIncompletePlanData
has no value it will display message there No record found
Otherwise display the array result.Please help me.
<td ng-show='viewIncompletePlanData.length===0'>No record found</td>
– Rayon Nov 30 '15 at 8:50