Answers for "angular disable element"

4

disable input angular

<input [readonly]="this.isEditable" 
    type="text" 
    formControlName="reporteeName" 
    class="form-control" 
    placeholder="Enter Name" required>
Posted by: Guest on September-15-2020
1

angualr disable div

.my-disable{
    pointer-events:none;
}
Posted by: Guest on March-22-2020
1

angualr disable div

<div ng-class="{'my-disable':condition}">
Posted by: Guest on March-22-2020
0

how to disable a div in angular

<div [ngClass]="{'class1': condition,}"></div>

// your .css file
.disable{
  pointer-events:none;
}
Posted by: Guest on January-04-2021

Browse Popular Code Answers by Language