Mercurial > hg > ugly-duckling
diff src/app/visualisations/waveform/waveform.component.ts @ 357:b529a08ddff1
Explicitly state the change detection strategy, despite the fact it will already be OnPush here because its parent is.
author | Lucas Thompson <dev@lucas.im> |
---|---|
date | Fri, 26 May 2017 18:30:58 +0100 |
parents | b852bace6b14 |
children | a3b45218c311 |
line wrap: on
line diff
--- a/src/app/visualisations/waveform/waveform.component.ts Fri May 26 18:28:54 2017 +0100 +++ b/src/app/visualisations/waveform/waveform.component.ts Fri May 26 18:30:58 2017 +0100 @@ -3,7 +3,8 @@ Input, ChangeDetectorRef, ElementRef, - ViewChild + ViewChild, + ChangeDetectionStrategy } from '@angular/core'; import wavesUI from 'waves-ui-piper'; import {WavesComponent} from '../waves-base.component'; @@ -12,7 +13,8 @@ @Component({ selector: 'ugly-waveform', templateUrl: '../waves-template.html', - styleUrls: ['../waves-template.css'] + styleUrls: ['../waves-template.css'], + changeDetection: ChangeDetectionStrategy.OnPush }) export class WaveformComponent extends WavesComponent { @ViewChild('track') trackDiv: ElementRef;