I know that if I use the catchError pipe operator in my application I can avoid the 'break' of the application so when it comes back the service keeps on rooting
.pipe(
catchError( error => from([]) )
);
How do I use this operator when calling the service to avoid crashing
I tried this way:
this.meuService.getValues('63').pipe(
catchError(error => from([]))
).subscribe( (medidor) => {
this.setarValores(medidor);
});
The goal is for your to stop my service node, the application keep trying to read the data