Answers for "Hide angular element on button click"

0

Hide angular element on button click

<button (click)="isShowInfo = !isShowInfo">Toggle me</button>

<div *ngIf="isShowInfo">
   <p>Here is my info</p>
</div>
Posted by: Guest on March-24-2022

Browse Popular Code Answers by Language