Mercurial > hg > ugly-duckling
view 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 |
line wrap: on
line source
/** * Created by lucas on 24/04/2017. */ import {ChangeDetectionStrategy, Component, Input} from '@angular/core'; @Component({ selector: 'ugly-progress-bar', template: ` <mat-progress-bar [attr.color]="'primary'" [mode]="isDeterminate ? 'determinate' : 'indeterminate'" [value]="progress" ></mat-progress-bar> `, changeDetection: ChangeDetectionStrategy.OnPush }) export class ProgressBarComponent { @Input() isDeterminate = false; @Input() progress: number; }