view src/app/progress-bar/progress-bar.ts @ 402:f9d5006f76e1

Change curve component to not render vertical scale / highlight by default. Delegate to child TrackComponent for that work, so the curve can be used like tracks, notes etc.
author Lucas Thompson <dev@lucas.im>
date Fri, 02 Jun 2017 19:10:47 +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;
}