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() );