How to make a formControl readonly
If you are using Reactive Forms you can assign it dynamically like in the example code below (email field) this.registerForm = this.formBuilder.group({ first_name: [”, Validators.required], last_name: [”, Validators.required], email: new FormControl({value: null, disabled: true}, Validators.required), password: [”, Validators.compose([Validators.required, Validators.email])], confirm_password: [”, Validators.required], }); If you want to get all the values including disabled controls you … Read more