/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/dev-app/progress-spinner/progress-spinner-demo.ts
37 строк
1 KB
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 {MatButtonModule} from '@angular/material/button'; import {MatButtonToggleModule} from '@angular/material/button-toggle'; import {MatCheckboxModule} from '@angular/material/checkbox'; import {ThemePalette} from '@angular/material/core'; import {MatProgressSpinnerModule} from '@angular/material/progress-spinner'; @Component({ selector: 'progress-spinner-demo', templateUrl: 'progress-spinner-demo.html', styleUrl: 'progress-spinner-demo.css', imports: [ MatButtonModule, MatCheckboxModule, MatButtonToggleModule, FormsModule, MatProgressSpinnerModule, ], }) export class ProgressSpinnerDemo { progressValue = 60; color: ThemePalette = 'primary'; isDeterminate = true; step(val: number) { this.progressValue = Math.max(0, Math.min(100, val + this.progressValue)); } }