disable angular code example

Example 1: disable input angular

<div class="center-content tp-spce-hdr">
  <div class="container">
    <div class="row mx-0 mt-4">
      <div class="col-12" style="padding-right: 700px;" >
          <div class="form-group">
              <label>Email</label>
                <input [disabled]="true" type="text" id="email" name="email" 
                [(ngModel)]="email" class="form-control">
          </div>
     </div>
   </div>
 </div>

Example 2: how to disable a div in angular

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

// your .css file
.disable{
  pointer-events:none;
}