Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Get value from each *ngFor ionic 4, ionic 5, ionic 6

<div *ngFor="let box of boxes"> 

        <ion-item-sliding id="anyId">
          <ion-item>
            <ion-avatar slot="start">
              <img [offset]="100" [alt]="box.user?.name"
                defaultImage="./assets/img/photo.png" [lazyLoad]="box.user?.photo?.url()" />
            </ion-avatar>
            <ion-label class="ion-text-wrap">

              <ion-text color="dark">
                <h3 class="bold no-margin">
                  {{ box.user?.name }}
                </h3>
              </ion-text>
            </ion-label>
           
          </ion-item>
      
          <ion-item-options side="end">
            <ion-item-option color="primary" (click)="onDelete(box)">
              <ion-icon slot="icon-only" name="trash"></ion-icon>
            </ion-item-option>
          </ion-item-options>
        </ion-item-sliding>
    </div>
 
PREVIOUS NEXT
Tagged: #Get #ionic #ionic #ionic
ADD COMMENT
Topic
Name
6+2 =