toast_controller.js 219 B

123456789
  1. import { Controller } from '@hotwired/stimulus';
  2. import { Toast } from 'bootstrap';
  3. export default class extends Controller {
  4. connect() {
  5. const toast = new Toast(this.element);
  6. toast.show();
  7. }
  8. }