Answers for "angular 2 else if in template"

1

ng if

<ng-template [ngIf]="heroes" [ngIfElse]="loading">
 <div class="hero-list">
  ...
 </div>
</ng-template>

<ng-template #loading>
 <div>Loading...</div>
</ng-template>
Posted by: Guest on September-30-2020

Code answers related to "angular 2 else if in template"

Browse Popular Code Answers by Language