Technical Chamber
  • Contact Us
  • Ask Question
  • Login
Search
Question:
How can I filter operator in rxjs and subscribe in Angular

Solution

Right now what you are missing is the subscribe. The best way to handle that is to concatMap over to it.

const dialogRef = this.dialog.open(DialogUpdateComponent, dialogConfig)

  dialogRef.afterClosed()

  .pipe(

  filter( (resp) => Object.values(resp) !== Object.values(this.stat) && resp.index)),

  concatMap((resp) => this.statService.editStat(resp, resp.index)),

)

.subscribe();


Suggested blogs:

>How can I access specific data inside a JSON file on an Angular?

>HTTP request after another but only care about first one in Angular?

>Why am I getting unexpected parent reaction to child button Angular?

>How can I combine multiple HTTP calls in Angular using RxJS?

>Why Ng serve doesn't work in Angulars?

>How to use JSON:API along with Angular/RxJs?

>Why Ng server doesn't work in Angulars?

>How to operate data before return it using Angular16?

>How to Embed Node Red into existing Angular application?

>Why Angular routing with mat-toolbar is not working?

>Update Observable with value from a different Observable in Angular

>P-Dropdown doesn't set Value manually with Reactive Form in Angular

>Why Apex stacked chart bar is not showing in the x-axis in Angular?

>How can I delete the 3rdpartylicenses.txt file in Angular?


  • Angular
Ritu Singh

Ritu Singh

Submit
0 Answers
Top Questions
21-11-2023

How can I combine multiple HTTP calls in Angular using RxJS?

04-12-2023

How to Focus shifting between array of standard <input> controls?

17-11-2023

How to make the dropdown for this button ADA accessible in Angular?

12-06-2023

CRUD Operation on Angular

01-12-2023

How can I filter operator in rxjs and subscribe in Angular

Related Questions

  • Angular
Ionic 6 AppState change causing duplicate subscription results
img
Asked 13-12-2023Nisha Patel
  • Angular
HTTP request after another but only care about first one in Angular?
img
Asked 21-11-2023Ritu Singh
  • Angular
Force input field to return to former correct value on wrong input
img
Asked 21-11-2023Ritu Singh
  • Angular
Angular 8.2 Type 'Subscription' is missing the following properties from type
img
Asked 01-12-2023Ritu Singh
  • Angular
CRUD Operation on Angular
img
Asked 12-06-2023Adequate Infosoft
Technical Chamber

We genuinely believe coding is an art, and the Technical Chamber is a platform for all coders to come along. At the Technical Chamber, you will find a variety of resources for all skill levels, including tutorials, articles, and resources for all types of coding languages.

Popular Category
  • React
  • Microcontroller
  • AWS
  • Asp.net
  • Node Js
Useful Links
  • Write For Us
  • Contact Us
Contact Us
  • The Corenthum, TOWER-A, 2611 , 6th Floor, Sector 62, Noida, Uttar Pradesh 201301
  • contact@adequateinfosoft.com
  • +91- 0120 419 8878

Copyright © 2023 Technical Chamber. All Right Reserved

  • Write For Us
  • Ask Question
  • Contact Us