i want to use the Toast Messages for global Error Handling.
At the moment my code in main.ts looks like:
Code: Select all
app.config.errorHandler = (err, vm, info) => {
if (err instanceof HttpError) {
const httpError = err as HttpError;
}
console.log(err);
};
Any Ideas how to achieve this?