# HG changeset patch # User Lucas Thompson # Date 1493041232 -3600 # Node ID c274af5487c6d56013a88dcdbe28b0296c8d259b # Parent efa23f33393be79a7dfff36ab733e318a00645c1 Add a progress bar, having issues with md-spinner not updating and also animating when it shouldn't diff -r efa23f33393b -r c274af5487c6 src/app/progress-bar/progress-bar.ts --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/app/progress-bar/progress-bar.ts Mon Apr 24 14:40:32 2017 +0100 @@ -0,0 +1,21 @@ +/** + * Created by lucas on 24/04/2017. + */ + + +import {ChangeDetectionStrategy, Component, Input} from "@angular/core"; +@Component({ + selector: 'ugly-progress-bar', + template: ` + + `, + changeDetection: ChangeDetectionStrategy.OnPush +}) +export class ProgressBarComponent { + @Input() isDeterminate: boolean = false; + @Input() progress: number; +}