Hi, Great video by the way!. I have some regarding async pipe, In this video you have used, a single observable of string that errors out and you have displayed in the template using async in the template how do we handle it when we use objects that error out or when we use ngFor using async pipe. hope you get my question.
while using objects or arrays, we need to emit the default value usually empty [] or {} from the catchError block eg: in case of ngFor with async pipe, catchError((err) => { return of([]); }),
@@JSFrameworks Ok, what if I have to an error message like ' No data available '. If have to do that i have to check if an array or object is empty, is that correct?
Awesome sir, thank you
Great sir.
Thank you ❤️
Hi, Great video by the way!.
I have some regarding async pipe,
In this video you have used, a single observable of string that errors out and you have displayed in the template using async in the template
how do we handle it when we use objects that error out or when we use ngFor using async pipe. hope you get my question.
while using objects or arrays, we need to emit the default value usually empty [] or {} from the catchError block
eg: in case of ngFor with async pipe,
catchError((err) => {
return of([]);
}),
@@JSFrameworks Ok, what if I have to an error message like ' No data available '. If have to do that i have to check if an array or object is empty, is that correct?
In the catch error block you might need to set an indicator, that an error occurred
@@JSFrameworks can you update the repo with these implementation
Updated the repo
Awesome.
Hi, which extension you are using for auto completion code??? @ time stamp 6:40
Github copilot