адрес электронной почты и пароль будут сохранены в файлах cookie, если мы проверим, запомните меня
как это сделать?
import { CookieService } from 'ngx-cookie-service';
loginForm: FormGroup;
email: string;
password: string;
rememberMe:string;
constructor( private cookieService: CookieService ) { }
ngOnInit() {}
handleSubmit() {
if (this.loginForm.valid) {
this.authService
.loginUser(this.loginForm.value)
.subscribe(
response => this.handleLoginSuccess(response),
error => this.handleLoginFailure(error)
);