this is in my component for select item
this.test = this.string$.pip(
switchMap(() => {
return this.list.checkBox(data)
})
this.test.subscribe((res) => {
}, (err) => {
item.status = false
}
this.string.next(date);
i want to add loading for each item , for example i have list of data that i want when we have post request set loading just for that item , i test it with writing in the switchmap but it set for all items , or in the tap after and before switchmap like this following code but not worked
this.test = this.string$.pip(
tap(() => this.loading =true),
switchMap(() => {
return this.list.checkBox(data)
}),
tap(() => this.loading = false
)