# Usage

## Import ToastService
`import { ToastService } from '@bref/core';`

## Inject ToastService where needed
`constructor(private toast: ToastService, ...) { }`

## Show success toast
`toast.success('I\'m a success toast!')`

## Show error toast
`toast.error('I\'m an error toast!')`

## More information
ToastService is based on [Toastify](https://apvarun.github.io/toastify-js/).