import { MdcSnackbarService } from '@aurelia-mdc-web/snackbar' ; import { CloseReason , MDCBannerCloseEventDetail } from '@material/banner' ; import { autoinject } from 'aurelia-dependency-injection' ; @ autoinject export class Inline { constructor ( private snackbarService ) { } bannerClosed ( event ) { this . snackbarService . open ( `You chose ${ CloseReason [ event . detail . reason ] } action` ) ; } }