Is it possible to controll 3 divs using *ngIf in Angular 2?
Can I do something like
<div *ngIf="planState=plan1">show plan 1</div>
<div *ngIf="planState=plan2">show plan 2</div>
<div *ngIf="planState=plan3">show plan 3</div>
Thanks!
Is it possible to controll 3 divs using *ngIf in Angular 2?
Can I do something like
<div *ngIf="planState=plan1">show plan 1</div>
<div *ngIf="planState=plan2">show plan 2</div>
<div *ngIf="planState=plan3">show plan 3</div>
Thanks!
I have update your plunker code as below and it works: