Change detection optimization

This commit is contained in:
Farkas József
2017-02-07 20:22:41 +01:00
parent 4031509acd
commit dd9ce4827f
14 changed files with 42 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
import { Component, EventEmitter, Input, Output } from '@angular/core';
import { Component, EventEmitter, Input, Output, ChangeDetectionStrategy } from '@angular/core';
import { KeyAction } from '../../../config-serializer/config-items/key-action';
@@ -7,7 +7,8 @@ import { SvgKeyboardKey } from '../keys';
@Component({
selector: 'g[svg-module]',
templateUrl: './svg-module.component.html',
styleUrls: ['./svg-module.component.scss']
styleUrls: ['./svg-module.component.scss'],
changeDetection: ChangeDetectionStrategy.OnPush
})
export class SvgModuleComponent {
@Input() coverages: any[];