angular2 ng-if
ng-if
<td ><div class="td-li" >
<a (click)="open(i)" class="mdc-button ori-text" *ngIf="i.status==='待发货'">
发货
</a>
<a (click)="open(i)" class="mdc-button ori-text" *ngIf="i.status==='已完成'">
</a>
<a (click)="open(i)" class="mdc-button ori-text" *ngIf="i.status==='已发货'">
修改
</a>
</div></td>
<a (click)="open(i)" class="mdc-button ori-text">
{{i.status === '已完成' ? '' : '发货'}}
</a>