示例中,根据ng-if指令显示不同任务状态,以及判断任务是否可以操作
<div ng-app="NgifDemoApp" ng-controller="NgifDemoContrl as vm">
<h1>任务列表</h1>
<table class="table">
<thead>
<tr>
<th>任务编号</th>
<th>任务名称</th>
<th>任务状态</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<!--ng-repeat指令,类似foreach循环-->
<tr ng-repeat="item in vm.taskList">
<td><p>{
<div