我一直使用findElement(By.id)或findElement(By.className),但是随着离子的使用,我不知道如何选择元素,应用程序的代码是:
<div (click)="openclose('otras')" *ngIf="!emptyOtras">
<p class="info uppercase">Otras / Tango<span class="iconDetail" ><ion-icon [ngClass]="{'openDetail': !oOtras, 'closeDetail' : oOtras}" md="detail-vtr" ios="detail-vtr" slot="end"></ion-icon></span></p>
<ion-list lines="none" *ngIf="oOtras">
<div *ngFor="let orden of ordenes" class="orden">
<div *ngIf="orden?.ESTADO!='INI' && orden?.ESTADO!='PEN' && orden?.ESTADO!='COM'">
<p *ngIf="orden?.toa" class="estado {{orden?.ESTADO}}" >
Estado: {{orden?.ESTADO | toaName}}
</p>
<ion-item mode="ios" (click)="detalle(orden)" detail="false">
<ion-label text-wrap >
<p class="title-orden">Nº de orden: <span>{{orden.IDEN_ORDEN}}</span></p>
<h4 class="actividad">{{orden.ACTIVIDAD}}</h4>
<h4 class="hora">Horario: {{orden.AGENHORA | filterTime: orden.toa?true:false}}</h4>
</ion-label>
<ion-icon md="detail-vtr" ios="detail-vtr" slot="end"></ion-icon>
</ion-item>
</div>
</div>
</ion-list>
这是我必须完成的工作:
<div (click)="openclose('otras')" *ngIf="!emptyOtras">
有人可以帮助我吗?