Mercurial > hg > ugly-duckling
diff src/app/visualisations/waveform/waveform.component.ts @ 405:3ace7672638b
Angular DI can't figure out these are derived from WavesComponent. Add provider for base.
| author | Lucas Thompson <dev@lucas.im> |
|---|---|
| date | Sun, 04 Jun 2017 20:15:20 +0100 |
| parents | afe2fa4a3215 |
| children | 24df6a0d61c8 |
line wrap: on
line diff
--- a/src/app/visualisations/waveform/waveform.component.ts Sat Jun 03 09:59:56 2017 +0100 +++ b/src/app/visualisations/waveform/waveform.component.ts Sun Jun 04 20:15:20 2017 +0100 @@ -11,7 +11,10 @@ selector: 'ugly-waveform', templateUrl: '../waves-template.html', styleUrls: ['../waves-template.css'], - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + providers: [ + {provide: WavesComponent, useExisting: WaveformComponent} + ] }) export class WaveformComponent extends WavesComponent<AudioBuffer> { @Input() set audioBuffer(buffer: AudioBuffer) {
