Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

https://stackoverflow.com/questions/58589741/angular-8-hide-divs-and-show-div-on-button-click

<div *ngIf="div1">
    ABC
</div>
<div>
    DEF
</div>
<div>
    GHI
</div>
<button (click)="div1Function()"></button>
<button (click)="div2Function()"></button>
<button (click)="div3Function()"></button>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+6 =