Most voted "rxjs" questions
10 questions
Sort by count of
-
3
votes2
answers1134
viewsHow to get an Observable from an array item?
Working with Observable and Rxjs, I came across the following problem. At a certain point in the code, my access to the bank is done as follows: getExemplo(id: number):Observable<Exemplo>{…
-
2
votes1
answer42
viewsHow to get the last n elements of an Observable?
I own a service that is receiving an array objeto API with the function below: getUltimosDados(n: number): Observable<Objeto[]>{ return this.httpClient.get<Objeto[]>(this.enderecoDaApi +…
-
1
votes1
answer100
viewsWhat does the word "of" mean in Rxjs?
What does the word "of" mean in Rxjs ? Example: const source = of('World').pipe( map(x => `Hello ${x}!`) );
-
0
votes1
answer674
viewsHow to process JSON that has an object array as property with Observable (Angularjs)?
I have an API that returns objects JSON as follows: { "data": [ { "nome": "objeto1" }, { "nome": "objeto2" }, ] } However, when receiving the objects in the service, I can’t just pick up the…
-
0
votes0
answers70
viewsWith chaining a series of observables?
I have to get the answer from a Observable and use it from parameter to another Observable, I’m using the operator switchMap() for that, but I don’t know if it’s the right way. Ex.:…
-
0
votes1
answer101
viewsHow to call a method when using the switchMap operator
I’m studying reactive forms, working with Framework Angular. Thinking about functional and reactive programming, I’m listening to the status changes of the control cep, then, first I used the…
angular functional-programming rxjs reactive-programmingasked 4 years, 10 months ago Thomas Erich Pimentel 3,059 -
0
votes1
answer31
viewsHow to insert a dictionary with foreach using observables?
I am trying to create several people in my database when starting the application, but it is only creating the last user. APP.COMPONENT export class AppComponent implements OnInit { title =…
-
0
votes1
answer62
viewsHow to avoid that when enrolling in an observable it receives the last amount issued?
I have a behaviorSubject that emits values and an Observable I use to receive the values issued: observableSource = new BehaviorSubject(null); observable$: Observable<string> =…
-
-1
votes1
answer65
viewsUnsubscribe does not work in RXJS, what is the correct method of use?
I made a code to monitor a map using the nativescript-Geolocation and the nativescript-google-maps-sdk, there is an Angular service that encapsulates all the logic of access to the…
-
-1
votes1
answer44
viewsCancel subscribe
I’m performing a call to API that returns me a list of any obj when I click on a button. That is if I click twice in sequence, the API returns me the same list in sequence as well. My question is,…