Try using attr.disabled
, instead of disabled
<input [attr.disabled]="disabled ? '' : null"/>
More Related Contents:
- When to use FormGroup vs. FormArray?
- How to set value to form control in Reactive Forms in Angular
- Angular 4 validator to check 2 controls at the same time
- In Angular, how to add Validator to FormControl after control is created?
- Reactive Forms: How to add new FormGroup or FormArray into an existing FormGroup at a later point in time in Angular till v14
- addControl to FormGroup dynamically in Angular
- Angular 5 Reactive Forms – Radio Button Group
- How to use pipes in Angular 5 reactive form input
- How to make a formControl readonly
- angular 6 warning for using formControlName and ngModel
- How to use reactive forms in a dynamic component
- Angular 2 innerHTML (click) binding
- Error:Unable to locate adb within SDK in Android Studio
- How to communicate between component in Angular?
- Angular 4.3 – HttpClient set params
- How can I limit ngFor repeat to some number of items in Angular?
- function gets called several times
- How to implement SignIn with Google in Angular 2 using Typescript
- RouterModule.forRoot(ROUTES) vs RouterModule.forChild(ROUTES)
- Best way to “flatten” an array inside an RxJS Observable
- Use nav.push with side menu in ionic 2
- ERROR Error: No value accessor for form control with unspecified name attribute on switch
- How to make an http call every 2 minutes with RXJS?
- How to “communicate” between components in Angular?
- How to specify locale thousand separator for number pipe in Angular 4
- Do I have to unsubscribe from ActivatedRoute (e.g. params) observables?
- How to throw error from RxJS map operator (angular)
- Need BrowserAnimationsModule in Angular but gives error in Universal
- Angular 2 disable sanitize
- Can I use Angular i18n to translate string literals in typescript code