supose these divs inside a component:
<div ngIf="condition1">
<button (click)="set_condition1_false_and_2_true()">show-template-2</button>
</div>
<div ngIf="condition2>
<button (click)="set_condition2_false_and_3_true()">show-template-3</a>
</div>
<div ngIf="condition3>
<a>Last Template</a>
</div>
assuming the typescript is working right with the booleans, what i need to do to make this view?
(observation) with two divs i make it works:
<div *ngIf="condition1; else secondTemplate>
<button (click)="make_condition1_false_and_2_true()">showSecondTemplate
</button>
</div>
<ng-template #secondTemplate>
<a>Second Template Works</a>
</ng-templante>
but i need three templates in the same component