import { inject } from 'aurelia-framework';
import { MdToastService } from 'aurelia-materialize-bridge/toast/toastService';

@inject(MdToastService)
export class Toasts {
  constructor(toast) {
    this.toast = toast;
  }

  showDefaultToast() {
    this.toast.show('I am a toast!', 4000);
  }

  showToastWithPromise() {
    this.toast.show('When finished, I trigger another toast.', 2000).then(() => {
      this.toast.show('I am a toast called by a callback of another toast!', 2000);
    });
  }
}

@@ -37,16 +37,19 @@
 ework';%0A
+// 
 import %7B
@@ -119,16 +119,77 @@
 ervice';
+%0Aimport %7B MdToastService %7D from 'aurelia-materialize-bridge';
 %0A%0A@injec

use new toast import