comparison src/app/visualisations/grid/grid.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 b69a223166b5
comparison
equal deleted inserted replaced
404:6672496ff32e 405:3ace7672638b
14 14
15 @Component({ 15 @Component({
16 selector: 'ugly-grid', 16 selector: 'ugly-grid',
17 templateUrl: '../waves-template.html', 17 templateUrl: '../waves-template.html',
18 styleUrls: ['../waves-template.css'], 18 styleUrls: ['../waves-template.css'],
19 changeDetection: ChangeDetectionStrategy.OnPush 19 changeDetection: ChangeDetectionStrategy.OnPush,
20 providers: [
21 {provide: WavesComponent, useExisting: GridComponent}
22 ]
20 }) 23 })
21 export class GridComponent extends WavesComponent<MatrixFeature> { 24 export class GridComponent extends WavesComponent<MatrixFeature> {
22 25
23 @Input() set grid(grid: MatrixFeature) { 26 @Input() set grid(grid: MatrixFeature) {
24 this.feature = grid; 27 this.feature = grid;