diff src/app/visualisations/instants/instants.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 64ed45a0bad3
line wrap: on
line diff
--- 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<Instant[]> {
   @Input() set instants(instants: Instant[]) {