this.formGroupName.controls['lastName'].disable()
Did not work for me in Angular 8. So I made it work by adding a 'readonly' attribute inside the HTML and then change its value in .ts file.
inside .html file
inside .ts file
email_readonly = false;
yourFunction()
{
this.email_readonly = true;
}