Programmatically Disable an Angular Email Material Input Field

Updated Version

There is an updated version of this article here:


We want the user to confirm their email address by entering a code. We also want to use a disabled email reactive material input field so that it only shows the email address without any editing capability:

<input matInput placeholder="Email" type="email" formControlName="email">


email = '';
confirm: FormGroup = new FormGroup({
email: new FormControl({value:, disabled: true}),
code: new FormControl('', [ Validators.required, Validators.min(3) ])});


Brought to You By Firefly Semantics



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Ole Ersoy

Ole Ersoy

Founder of Firefly Semantics Corporation