/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/dev-app/button-toggle/button-toggle-demo.ts
29 строк
960 B
Kristiyan Kostadinov
build: remove explicit OnPush from dev app
18 май 2026, 10:44
18 май 2026, 10:44
40d7c5a
Код
Авторство
О чём код?
/** * @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.dev/license */ import {Component} from '@angular/core'; import {FormsModule} from '@angular/forms'; import {MatButtonToggleModule} from '@angular/material/button-toggle'; import {MatCheckboxModule} from '@angular/material/checkbox'; import {MatIconModule} from '@angular/material/icon'; @Component({ selector: 'button-toggle-demo', templateUrl: 'button-toggle-demo.html', styleUrl: 'button-toggle-demo.css', imports: [FormsModule, MatButtonToggleModule, MatCheckboxModule, MatIconModule], }) export class ButtonToggleDemo { isVertical = false; isDisabled = false; disabledInteractive = false; hideSingleSelectionIndicator = false; hideMultipleSelectionIndicator = false; favoritePie = 'Apple'; pieOptions = ['Apple', 'Cherry', 'Pecan', 'Lemon']; }