In my HTML file, I've duplicated the "elseBlock2". How do I implement directive (ng-template) to handle it?
<div class="col-2"> <ng-container *ngIf="item.isSuccess; else elseBlock2"> </ng-container> <ng-container *ngIf="item.progress; else elseBlock2"> % <mat-progress-bar mode="determinate" color="primary" value=></mat-progress-bar> </ng-container> </div>
https://stackoverflow.com/questions/66792324/how-do-i-implement-directive-ng-template-in-angular March 25, 2021 at 10:44AM
没有评论:
发表评论