Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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;
}
 
PREVIOUS NEXT
Tagged: #hide #element #pressing #button #angular
ADD COMMENT
Topic
Name
4+6 =