using disable in angular code example
Example: how to disable a div in angular
<div [ngClass]="{'class1': condition,}"></div>
// your .css file
.disable{
pointer-events:none;
}
<div [ngClass]="{'class1': condition,}"></div>
// your .css file
.disable{
pointer-events:none;
}