ipsos-components
Version:
Material Design components for Angular
28 lines (22 loc) • 649 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';
({
moduleId: module.id,
selector: 'progress-spinner-demo',
templateUrl: 'progress-spinner-demo.html',
styleUrls: ['progress-spinner-demo.css'],
})
export class ProgressSpinnerDemo {
progressValue = 60;
color = 'primary';
isDeterminate = true;
step(val: number) {
this.progressValue = Math.max(0, Math.min(100, val + this.progressValue));
}
}