When running the code in this part, I expected to receive 0-1 arguments but ended up getting 5 instead. Do you have any suggestions for a solution?
Register() {
let newUser = new User(this.registerForm.value,
newUser.city =this.cityid,
newUser.regionId = this.regionid,
newUser.country_id = this.countryid,
newUser.roleId = this.roleid,
);
this.ws.createUser(newUser).subscribe(
);
}
export class User {
password: string;
roleId: string;
firstName: string;
.
.
.
}
Any help is greatly appreciated. Thank you!