ipsos-components
Version:
Material Design components for Angular
28 lines (23 loc) • 733 B
text/typescript
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
import {Component} from '@angular/core';
import {MatSnackBar} from '@angular/material';
({
moduleId: module.id,
selector: 'snack-bar-a11y',
templateUrl: 'snack-bar-a11y.html',
})
export class SnackBarAccessibilityDemo {
constructor(private snackBar: MatSnackBar) {}
openDiscoPartySnackBar() {
this.snackBar.open('Disco party!', 'Dismiss', {duration: 5000});
}
openNotificationSnackBar() {
this.snackBar.open('Thank you for your support!', '', {duration: 2000});
}
}