in a form in angular 2 I filled ngModel with properties of a class. But I have 2 extra properties for example when user fill email input I want two properties get this value(email and username) and when fill password input two properties get this value(password and confirmPassword). What is the syntax of it?I tried this but it sends error:
<input [(ngModel)]="createuser.pasword;createuser.confirmPassword" name="password" type="password" minlength="6" required>
createuser is object of CreateUser:
export class CreateUser {
mail: string;
UserName: string;
password: string;
confirmPassword: string;}
thanks a lot for your helping in a simple way.