From fc5e5e800faf10e6da28248801746941bea283c9 Mon Sep 17 00:00:00 2001 From: Lorenzo Iovino Date: Fri, 11 Aug 2017 12:19:31 +0200 Subject: [PATCH] up --- src/ng2fittext.directive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng2fittext.directive.ts b/src/ng2fittext.directive.ts index c215282..7b2207b 100644 --- a/src/ng2fittext.directive.ts +++ b/src/ng2fittext.directive.ts @@ -95,7 +95,7 @@ export class Ng2FittextDirective implements AfterViewInit, OnInit, OnChanges, Af } } - ngOnChanges(changes: SimpleChanges): void { + ngOnChanges(changes: any): void { if (changes.modelToWatch) { // change of model to watch - call ngAfterViewInit where is implemented logic to change size setTimeout(_ => this.ngAfterViewInit() );