what is the best way to disable Input Text in Angular 15

93 Views Asked by At

I want to disable the Input box in Angular 15. I know I can use [disabled] attribute as below. The issue is, that the user can still right-click the control, view the source and remove the disabled attribute, making it enabled again.

<input  id="invoiceItem_qty" type="number"
                         class="form-control form-control-sm rounded-0"
                         [(ngModel)]="invoiceItem.qty"
                         name="invoiceItemQty"
                         #invoiceItemQty="ngModel" [disabled]="isLoading == true" />

Does anyone have a better suggestion?

0

There are 0 best solutions below