Answers for "ngif example ionic"

1

ionic ngif else example

<div *ngIf="isValid;then content else other_content">here is ignored</div>    
<ng-template #content>content here...</ng-template>
<ng-template #other_content>other content here...</ng-template>
Posted by: Guest on January-21-2021
0

ngfor ionic example

<ion-select placeholder="Select" [(ngModel)]="selected">
    <ion-option *ngFor="let item of strings" [value]="item">{{item}}</ion-option>
</ion-select>`
Posted by: Guest on February-17-2020

Browse Popular Code Answers by Language