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