AK
Size: a a a
AK
AK
OS
AK
AK
AK
AK
AK
IF
AU
И
TT
get userData(): Account {
if (this.accountData === undefined) {
this.getUserData();
}
return this.accountData;
}
private getUserData(){
this.http
.get<Account>('http://localhost:8085/acc/data', {
observe: 'response',
headers: new HttpHeaders({token: this.token})})
.subscribe(resp => {
this.accountData = resp.body;
});
}
может кто-либо обьяснить, какого хуя у меня здесь рекурсия?IS
IS
YS
get userData(): Account {
if (this.accountData === undefined) {
this.getUserData();
}
return this.accountData;
}
private getUserData(){
this.http
.get<Account>('http://localhost:8085/acc/data', {
observe: 'response',
headers: new HttpHeaders({token: this.token})})
.subscribe(resp => {
this.accountData = resp.body;
});
}
может кто-либо обьяснить, какого хуя у меня здесь рекурсия?TT
YS
TT
registration(account: Account): Observable<any> {
return this.http.post('http://localhost:8085/acc/create', account);
}
submit() {
this.auth.registration(account).subscribe((resp) => {
this.form.reset();
this.router.navigate(['/login']);
});
}YS