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