Questions tagged [rxjs-observables]

759 questions
-1
votes
1 answer

How to re-send failed API requests on internet re-connection using Angular 8?

I'm calling some API call on submit, due to internet connection interrupt failed API calls. I need to re-send failed API's on re-connection.
-1
votes
1 answer

i’m having problems nesting two services

First one returns an array of objects . Every object has a unique user id which I need in order to call the second service. this._vendorService.getAllPickupLoc().subscribe(val => { val.forEach(element => { this.finalObject = element; …
-2
votes
0 answers

How to fix jasmine unit test case involving nested promises with observables

I am writing a INtegration test where it involves navingating to desired form completing it with some values and then upon clicking SUBMIT button I just want to verify that if the navigation to the next page happens properly and also check if the…
-2
votes
1 answer

Why I am unable to display Observable data in my HTML page?

dashbord.component.ts As I got data in books$ : Observable but I am unable to show in HTML import { Component, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import {Student} from '../models/student' import…
-2
votes
1 answer

Observable returning value after method call finished

getModel() method always return array with empty name array even when languages Observable returns value. why? export interface Category extends BaseModel { code: string; name: LocalizedValue[]; description: LocalizedValue[]; …
Saurabh Kumar
  • 16,353
  • 49
  • 133
  • 212
-3
votes
2 answers

Get the value of obserable inside obserable rxjs

I have below Observable config$: Observable; this.config$.pipe(map(item => { return { fieldGroups: [ { id: CustomAttributeEntityType.Risk, label: this.l('Risk') }, { id:…
San Jaisy
  • 15,327
  • 34
  • 171
  • 290
-4
votes
1 answer

How to chain observables like using Promises or async/await?

Let's imagine I have this code using async/await that's working very well: async function getMeSomething() : Promise { // some async code } async function getMeStuff() : Promise { // some async code } async function…
nicolas-van
  • 935
  • 8
  • 13
-4
votes
3 answers

Why "return " is not working?

I am working with Angular and WordPress rest API. Everything is going fine. But I have a little confusion with the behavior of the following code. getpost(){ return this.http.get('someURL'); } The above function is residing in a service. When I…
jai lani
  • 9
  • 3
1 2 3
50
51