/** * @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/snack-bar'; @Component({ moduleId: module.id, selector: 'slide-toggle-a11y', templateUrl: 'slide-toggle-a11y.html', }) export class SlideToggleAccessibilityDemo { emailToggle = true; termsToggle = false; musicToggle = false; constructor(private _snackBar: MatSnackBar) {} onFormSubmit() { this._snackBar.open('Terms and condistions accepted!', '', {duration: 2000}); } }