Questions tagged [rxjs-observables]
759 questions
-1
votes
1 answer
Filter data from dynamic array values and bring a structure format as output in angular
I am getting dynamic values as array format like this
var sections = [
{ id: "1", section: "I", group: "Section1"},
{ id: "2", section: "I", group: "Section1"},
{ id: "3", section: "I", group: "Section2"},
{ id: "4", section: "I",…

santhosh patrudu
- 1
- 1
-1
votes
1 answer
Why am I obtaining this error trying to subscribe an Observable after the execution of RxJS tap() operator?
I am working on an Angular application using Firebase FireStore database and I have the following problem trying to use RxJS. I will try to explain you what I am trying to do.
I simply have this service method defined into a service class:
…

AndreaNobili
- 40,955
- 107
- 324
- 596
-1
votes
2 answers
Property 'interval' does not exist on type 'typeof Observable'. Even though its imported
Property 'interval' does not exist on type 'typeof Observable'. Even though its imported in and I dont know why it wont work. Ive seen some posts about this involving angular 6 but this is angular 11 so I hope someone can help me figure this…

lizardcoder
- 336
- 3
- 6
-1
votes
1 answer
Why this error using Firestore get() method? ERROR TypeError: snaps.map is not a function
I am working on an Angular project using Firebase FireStore database and I implemented this method to perform a query:
findArtistBidsAppliedByCurrentWall(bid):Observable {
console.log("findArtistBidsAppliedByCurrentWall() START")
…

AndreaNobili
- 40,955
- 107
- 324
- 596
-1
votes
2 answers
Autocomplete not filtering on mobile device in Ionic with Angular
I have an form wth autocomplete, it does work well in local but when i compile it to pwa it is not filtering datas.
The api works well and return a data json array response
var normalize = function (term) {
var ret = "";
for…

de albuquerque frank
- 187
- 3
- 14
-1
votes
1 answer
Undefind type not filter in skipWhile?
I had subscribed for async pipe and one pipe retrun - > bservable< AModel | undefined | null>.
I compine this four pipe in combineLatest and subcribe.but I need below code excute only -> AModel came.
So ,I used skipWhile(([, , , selectedA]) =>…

uma
- 1,477
- 3
- 32
- 63
-1
votes
1 answer
Angular: Binding Observable values in the template
Angular 10
In my component I have a simple Observable:
me$: Observable = this.store.select((s) => s.user);
I wish to show the user.firstName, but this is blank result:
You are {{ me$.firstName | async }}
If I use this, it works,…
Ian Vink
- 66,960
- 104
- 341
- 555
-1
votes
1 answer
Subscribe each observables in forkJoin
I want to have multiple observables scheduled consistently with forkJoin, but want to subscribe each of them individually, like below.
const ox = http.get('x');
const oy = http.get('y');
const all = interval(1000).pipe(
switchMap(
() =>…

tink
- 39
- 1
- 6
-1
votes
1 answer
How to refactor HttpRequests in nested for-loops that use subscribe?
we have an REST-API that is frontend agnostic, which means that it always sends the IRI to its nested resources. So to retrieve some data you always have to make multiple http calls (first get the parent resource, then its child resources etc.)
So…

Toxuas
- 1
- 3
-1
votes
1 answer
Looping in a particular range of numbers in prime ng- input number spinner
How to loop through a range of numbers for example: 0 to 10, in prime ng input number spinner?

Kusuma S V
- 1
- 1
-1
votes
1 answer
Angular cannot call method from service with observable
I have a service with this code:
cars() {
return 'something here';
}
Then from the component I want to get the data with an observable so I'm doing this:
getcars() {
this.dataService.cars().subscribe((result) => {
…

joe2020wow
- 237
- 5
- 12
-1
votes
1 answer
I have a component here i used to subscription and after subscribed method and unsubscribe the subscrimed method in order to avvoid the memory leakage
Service code
private posts: Post[] = [];
private postsupdated = new Subject();
getPost() {
return [...this.posts]
}
getPostsUpdatedListener() {
return this.postsupdated.asObservable()
}
addPosts(title: String, content:…

Sairam Sunkara
- 19
- 6
-1
votes
1 answer
How to make from two services one service?
I have a angular 8 application and a service, like this:
export class ProfileUserService {
user$ = this.authService.loginStatus().pipe(take(1));
constructor(private profileService: ProfileService, private authService: AuthService) {}
…
user13052269
-1
votes
1 answer
Mat Select displaying empty options with Observable
I am creating mat-select options using results from Observable but the options are not rendering. When it simple array it is rendering.
Following is the example i build - See here

Alyona Ivanova
- 1
- 1
-1
votes
3 answers
RxJava - How to make flatmap continue if one of the observables causes an error?
I'm creating an app that takes a list of apps installed on the device and checks for version updates from the google play store.
This is my method to get the app information based on package name:
public Observable…

Brandon Xia
- 407
- 3
- 19