帮助了 AmazingCounters.com 位小伙伴

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>
View Code

 

<a (click)="open(i)" class="mdc-button ori-text">
                      {{i.status === '已完成' ? '' : '发货'}}
                  </a>

 

posted on 2018-04-16 11:48  云的旋律  阅读(891)  评论(0编辑  收藏  举报

导航

前端攻城狮分享群