subject-observer Questions
5
Solved
I am building a service which exposes an Observable. In this service I receive external function calls which should trigger a next call on the Observable so that various consumers get the subscribe...
Pilloff asked 25/1, 2017 at 18:42
1
Solved
When creating an RxJS BehaviorSubject, it stays a BehaviorSubject until it's pipe'd. As soon a pipe'd version is returned, it becomes an AnonymousSubject.
Examples:
// Instance of `BehaviorSu...
Asclepiadaceous asked 24/4, 2018 at 3:53
2
Solved
I have the following BehaviorSubject in a service:
isAuthenticated = new BehaviorSubject<boolean>(false);
And I am using it as follows in a component:
authenticated: Observable<boole...
Ratiocination asked 18/1, 2018 at 10:44
1
Solved
I have an angular project with a service called BookService.
private books: Subject<Book[]>;
getBookList(skip:number = 0,limit:number = 0): Subject<Book[]> {
return this.books;
}
ad...
Cadent asked 15/8, 2018 at 18:46
2
Solved
I want to retrieve an updated object value (borrower) from an Angular Service. I've created an RxJS Subject in the Service so that multiple components can subscribe to it and get the updated value....
Tapetum asked 6/10, 2017 at 19:42
2
I have implemented a simple BehaviorSubject,
import {BehaviorSubject} from "rxjs";
class MyWeirdoClass {
constructor() {}
private st: Subject<boolean> = new BehaviorSubject<boolean&...
Limoli asked 31/1, 2017 at 7:8
3
Solved
Under the subjects package you have classes like PublishSubject and BehaviorSubject which I suppose can be described as some usable sample Observables.
How can these subjects be unsubscribed from?...
Gib asked 21/1, 2014 at 12:13
1
© 2022 - 2024 — McMap. All rights reserved.