How to apply multiple template bindings on one element in angular [duplicate]

Can’t use two template binding on one element in Angular 2 (like *ngIf and *ngFor). But you can achieve the same by wrapping the element with a span or any other element. It is good to append with an <ng-container> as it is a logical container and it will not get appended to the DOM. For example,


<ng-container *ngIf="condition">
<li *ngFor="let item of items">

Java 8 | Spring | React | Angular | CI/CD | Microservices | Monitoring |Apache Kafka.