Imagine these divs within 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>
If the TypeScript is correctly handling the booleans, how can I create this view?
(note) I managed to make it work with two divs:
<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>
However, I need three templates in the same component