Enable OnPush cd strategy in SvgKeyboardKeyComponent

This commit is contained in:
József Farkas
2017-06-17 14:17:56 +02:00
parent baa48f2a72
commit 10f44f974a

View File

@@ -1,6 +1,6 @@
import {
Component, ElementRef, EventEmitter, HostListener, Input, OnChanges, OnDestroy, OnInit, Output, Renderer,
SimpleChange
SimpleChange, ChangeDetectionStrategy
} from '@angular/core';
import { animate, group, state, style, transition, trigger } from '@angular/animations';
@@ -67,7 +67,8 @@ enum LabelTypes {
],
selector: 'g[svg-keyboard-key]',
templateUrl: './svg-keyboard-key.component.html',
styleUrls: ['./svg-keyboard-key.component.scss']
styleUrls: ['./svg-keyboard-key.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class SvgKeyboardKeyComponent implements OnInit, OnChanges, OnDestroy {
@Input() id: string;