AK
Size: a a a
AK
В
S
ЕВ
this.next https://github.com/TinkoffCreditSystems/taiga-ui/blob/6f89b82ea03f001a09e671b84ae1a10db2f293fe/projects/cdk/services/destroy.service.ts#L10 ? Поидее нужно же создать сабджект. Вот я скопировал ваш код из твиттера. За счет чего в тайге создается сабджет?@Injectable()
export class UnSubscribeService extends Observable<void> implements OnDestroy {
private readonly unsubscribe$ = new Subject<void>();
constructor() {
super((subscriber) => this.unsubscribe$.subscribe(subscriber));
}
ngOnDestroy() {
this.unsubscribe$.next();
this.unsubscribe$.complete();
}
}
DA
private data = new ReplaySubject(1);
get data$() {
return this.data
.asObservavle()
}
fetch() {
this.http.get(...)
.subscribe(this.data)
}
ИК
this.next https://github.com/TinkoffCreditSystems/taiga-ui/blob/6f89b82ea03f001a09e671b84ae1a10db2f293fe/projects/cdk/services/destroy.service.ts#L10 ? Поидее нужно же создать сабджект. Вот я скопировал ваш код из твиттера. За счет чего в тайге создается сабджет?@Injectable()
export class UnSubscribeService extends Observable<void> implements OnDestroy {
private readonly unsubscribe$ = new Subject<void>();
constructor() {
super((subscriber) => this.unsubscribe$.subscribe(subscriber));
}
ngOnDestroy() {
this.unsubscribe$.next();
this.unsubscribe$.complete();
}
}
AI
this.next https://github.com/TinkoffCreditSystems/taiga-ui/blob/6f89b82ea03f001a09e671b84ae1a10db2f293fe/projects/cdk/services/destroy.service.ts#L10 ? Поидее нужно же создать сабджект. Вот я скопировал ваш код из твиттера. За счет чего в тайге создается сабджет?@Injectable()
export class UnSubscribeService extends Observable<void> implements OnDestroy {
private readonly unsubscribe$ = new Subject<void>();
constructor() {
super((subscriber) => this.unsubscribe$.subscribe(subscriber));
}
ngOnDestroy() {
this.unsubscribe$.next();
this.unsubscribe$.complete();
}
}
H

H
SB
SB
SB
Б
Б
Error: src/app/select/select.component.ts:30:53 - error TS2339: Property 'next' does not exist on type 'Observable<People[]>'.
30 setTimeout(() => this.peopleService.getPeople().next(dd), 1000);
OS
Б
A

OP
