Configure HTML body on drop down select

you need to use a variable in the component.ts file like clicked or where-ever you want and use a method do check it, for example:

<div id="example" (click)="checked()>

in your ts:

checked(){
this.clicked=true;
}

and last in your html (with the div) use the *ngIf operator to see if the variable is checked (the user clicked on the div):

<div id="show whatever you want after the click" *ngIf="clicked==true">
//the code you need to show after user interation

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top