Get $toast in main.ts

UI Components for Vue
Post Reply
LokiLokus
Posts: 1
Joined: 19 Dec 2020, 22:44

19 Dec 2020, 23:12

Hey,

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);
};
But now i need the $toast Object in there.
Any Ideas how to achieve this?

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 11 guests