# HG changeset patch # User Lucas Thompson # Date 1496603720 -3600 # Node ID 3ace7672638bbeb846338114a2653741eb88d95e # Parent 6672496ff32eb0eca993b79c18cfcf56f00518df Angular DI can't figure out these are derived from WavesComponent. Add provider for base. diff -r 6672496ff32e -r 3ace7672638b src/app/visualisations/curve/curve.component.ts --- a/src/app/visualisations/curve/curve.component.ts Sat Jun 03 09:59:56 2017 +0100 +++ b/src/app/visualisations/curve/curve.component.ts Sun Jun 04 20:15:20 2017 +0100 @@ -12,7 +12,8 @@ import { VerticallyBounded, VerticalScaleRenderer, - VerticalValueInspectorRenderer + VerticalValueInspectorRenderer, + WavesComponent } from '../waves-base.component'; import {TracksComponent} from '../tracks/tracks.components'; @@ -30,7 +31,8 @@ providers: [ {provide: VerticallyBounded, useExisting: CurveComponent }, {provide: VerticalScaleRenderer, useExisting: CurveComponent}, - {provide: VerticalValueInspectorRenderer, useExisting: CurveComponent} + {provide: VerticalValueInspectorRenderer, useExisting: CurveComponent}, + {provide: WavesComponent, useExisting: CurveComponent} ] }) export class CurveComponent implements VerticalValueInspectorRenderer { diff -r 6672496ff32e -r 3ace7672638b src/app/visualisations/grid/grid.component.ts --- a/src/app/visualisations/grid/grid.component.ts Sat Jun 03 09:59:56 2017 +0100 +++ b/src/app/visualisations/grid/grid.component.ts Sun Jun 04 20:15:20 2017 +0100 @@ -16,7 +16,10 @@ selector: 'ugly-grid', templateUrl: '../waves-template.html', styleUrls: ['../waves-template.css'], - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + providers: [ + {provide: WavesComponent, useExisting: GridComponent} + ] }) export class GridComponent extends WavesComponent { diff -r 6672496ff32e -r 3ace7672638b src/app/visualisations/instants/instants.component.ts --- a/src/app/visualisations/instants/instants.component.ts Sat Jun 03 09:59:56 2017 +0100 +++ b/src/app/visualisations/instants/instants.component.ts Sun Jun 04 20:15:20 2017 +0100 @@ -14,7 +14,10 @@ selector: 'ugly-instants', templateUrl: '../waves-template.html', styleUrls: ['../waves-template.css'], - changeDetection: ChangeDetectionStrategy.OnPush + changeDetection: ChangeDetectionStrategy.OnPush, + providers: [ + {provide: WavesComponent, useExisting: InstantsComponent} + ] }) export class InstantsComponent extends WavesComponent { @Input() set instants(instants: Instant[]) { diff -r 6672496ff32e -r 3ace7672638b src/app/visualisations/notes/notes.component.ts --- a/src/app/visualisations/notes/notes.component.ts Sat Jun 03 09:59:56 2017 +0100 +++ b/src/app/visualisations/notes/notes.component.ts Sun Jun 04 20:15:20 2017 +0100 @@ -5,7 +5,8 @@ InspectableVerticallyBoundedComponent, VerticallyBounded, VerticalScaleRenderer, - VerticalValueInspectorRenderer + VerticalValueInspectorRenderer, + WavesComponent } from '../waves-base.component'; import { ChangeDetectionStrategy, @@ -23,7 +24,8 @@ providers: [ { provide: VerticallyBounded, useExisting: NotesComponent }, { provide: VerticalScaleRenderer, useExisting: NotesComponent }, - {provide: VerticalValueInspectorRenderer, useExisting: NotesComponent } + {provide: VerticalValueInspectorRenderer, useExisting: NotesComponent }, + {provide: WavesComponent, useExisting: NotesComponent} ] }) export class NotesComponent extends InspectableVerticallyBoundedComponent { diff -r 6672496ff32e -r 3ace7672638b src/app/visualisations/tracks/tracks.components.ts --- a/src/app/visualisations/tracks/tracks.components.ts Sat Jun 03 09:59:56 2017 +0100 +++ b/src/app/visualisations/tracks/tracks.components.ts Sun Jun 04 20:15:20 2017 +0100 @@ -5,7 +5,7 @@ InspectableVerticallyBoundedComponent, VerticallyBounded, VerticalScaleRenderer, - VerticalValueInspectorRenderer, + VerticalValueInspectorRenderer, WavesComponent, } from '../waves-base.component'; import { ChangeDetectionStrategy, @@ -25,6 +25,7 @@ {provide: VerticallyBounded, useExisting: TracksComponent }, {provide: VerticalScaleRenderer, useExisting: TracksComponent}, {provide: VerticalValueInspectorRenderer, useExisting: TracksComponent}, + {provide: WavesComponent, useExisting: TracksComponent} ], }) export class TracksComponent diff -r 6672496ff32e -r 3ace7672638b src/app/visualisations/waveform/waveform.component.ts --- 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 { @Input() set audioBuffer(buffer: AudioBuffer) {