Enable OnPush cd strategy in SvgKeyboardKeyComponent
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user