Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- async submitLogin() {
- const mailControl = this.loginForm.controls['mail'];
- const passWordControl = this.loginForm.controls['passWord'];
- const s = new Login(mailControl.value, passWordControl.value); /*Only a void function can be called with the 'new' keyword*/
- console.log(s);
- const msgErrors = await s.init(mailControl.value, passWordControl.value);
- if (msgErrors.errorUserMsg) {
- this.msgErrorLogin = msgErrors.errorUserMsg;
- }
- }
Add Comment
Please, Sign In to add comment