Mercurial > hg > ugly-duckling
view src/app/progress-bar/progress-bar.ts @ 325:38f3fe548ac0
Merge pull request #1 from LucasThompson/fix/mobile-safari-high-water
Fix/mobile safari high water
author | Lucas Thompson <LucasThompson@users.noreply.github.com> |
---|---|
date | Tue, 16 May 2017 16:46:32 +0100 |
parents | 53ea6406d601 |
children | cf4a17efb5d4 |
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: ` <md-progress-bar [attr.color]="'primary'" [mode]="isDeterminate ? 'determinate' : 'indeterminate'" [value]="progress" ></md-progress-bar> `, changeDetection: ChangeDetectionStrategy.OnPush }) export class ProgressBarComponent { @Input() isDeterminate = false; @Input() progress: number; }