ng-disabled angular 8 code example
Example 1: disable input angular
<input [readonly]="this.isEditable"
type="text"
formControlName="reporteeName"
class="form-control"
placeholder="Enter Name" required>
Example 2: ng-select disabled
// If you are using the Angular reactive form and trying to disable the ng-select using the following code then sorry it will not work in some case. If you are using formControlName then it will not work but work in [(ngModel)] case.
[disabled] = true
// The best way to do this is by using reactive form control.
this.createReactiveform.controls['some_key'].disable();