I am working in an angular 5 application ,In this application for login purpose I have a Angular Material Design popup .
I have the following process in the dialog screen .
checking user mail if it's new signup form will be enabled or password field will be enabled.
So Initially I have the dialog height and width as 100 * 100 for the email input
If the user not exist the signup form will be enabled for that I want to set the height and width as 300*100
If user already exists then password field will be enabled along with email input for that i want to set 200 * 100
I am new to this so I could not find a solution also searched on SO can't solve it .
myAccountClick(event) {
const dialogScreen = this.dialog.open(MyaccountComponent,{height:'100px',width:'100px'});
}
can anyone help me to solve this .