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
@@ -1,8 +1,9 @@
import { Component, Input, OnInit } from '@angular/core';
import { Component, Input, OnInit, ChangeDetectionStrategy } from '@angular/core';
@Component({
selector: 'g[svg-text-icon-key]',
templateUrl: './svg-text-icon-key.component.html'
templateUrl: './svg-text-icon-key.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class SvgTextIconKeyComponent implements OnInit {
@Input() width: number;