There are more than two template variables in my component, just like blow:
<div #div1>
<div #part1 [hidden]="true">
</div>
<div #part2>
</div>
</div>
<div #div2>
<div #part3 [hidden]="true">
</div>
<div #part4>
</div>
</div>
<button (click)="showDiv(div1,div2)"></button>
I wanna click the button to show part1 and hide part2, same as part3 and part4, but it's just one button, what I can do now is to replace the div1 and div2 with part1 and part2, then what about part3 and part4? Another button? But the real request is more than two divs, maybe a dozen, so, can anyone help? Thanks a lot.