Helpers

toast(type, message)

This helper shows a <v-toast> component.

API

  • type - Either 'success', 'info' or 'error'
  • message - The message shown
  • dismissible - Whether or not a click can dismiss the toast

redirect(url)

Can be used to redirect the current page to the specified url.

API

  • url - An absolute or relative URL

log(message)

Writes a message to the console similar to console.log(). The console is useful for testing purposes.

API

  • message - The message or object to write in the console