1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Angular rxjs how to call multiple same http requests like one subscription?

Discussão em 'Angular' iniciado por PokerJoker, Junho 8, 2025.

  1. PokerJoker

    PokerJoker Guest

    For example I have multiple ids : [1,2,3,4,5] and then for each id I want to call delete api endpoint.Normally I would have to call it 5 times with forEach function :

    ids.forEach(item => {
    this.myService.delete(item).subscribe.....

    })


    But what if I want to combine it to one observable, so I could know when the loop has ended (complete state in rxjs) ?

    Can I do something like this ?

    Continue reading...

Compartilhe esta Página