Answers for "angular button hide/show"

4

hide and show in angular 8

<button (click)="toggleShow()" type="checkbox" >show/hide</button>

<div *ngIf="isShown" class="row container-fluid"  id="divshow" >
Div Content

</div>
Posted by: Guest on June-02-2020
1

hide element when pressing button angular

<div class="yourCssClass" *ngIf="this.isButtonVisible" (click)="this.isButtonVisible = false">
...
</div>

Your TypeScript

export class AppComponent {
   private isButtonVisible = true;
}
Posted by: Guest on January-28-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language