Mercurial > hg > ugly-duckling
annotate src/app/progress-bar/progress-bar.ts @ 509:041468f553e1 tip master
Merge pull request #57 from LucasThompson/fix/session-stack-max-call-stack
Fix accidental recursion in PersistentStack
author | Lucas Thompson <LucasThompson@users.noreply.github.com> |
---|---|
date | Mon, 27 Nov 2017 11:04:30 +0000 |
parents | cf4a17efb5d4 |
children |
rev | line source |
---|---|
dev@230 | 1 /** |
dev@230 | 2 * Created by lucas on 24/04/2017. |
dev@230 | 3 */ |
dev@230 | 4 |
dev@230 | 5 |
dev@236 | 6 import {ChangeDetectionStrategy, Component, Input} from '@angular/core'; |
dev@230 | 7 @Component({ |
dev@230 | 8 selector: 'ugly-progress-bar', |
dev@230 | 9 template: ` |
dev@505 | 10 <mat-progress-bar |
dev@230 | 11 [attr.color]="'primary'" |
dev@230 | 12 [mode]="isDeterminate ? 'determinate' : 'indeterminate'" |
dev@230 | 13 [value]="progress" |
dev@505 | 14 ></mat-progress-bar> |
dev@230 | 15 `, |
dev@230 | 16 changeDetection: ChangeDetectionStrategy.OnPush |
dev@230 | 17 }) |
dev@230 | 18 export class ProgressBarComponent { |
dev@236 | 19 @Input() isDeterminate = false; |
dev@230 | 20 @Input() progress: number; |
dev@230 | 21 } |