This commit is contained in:
Lorenzo Iovino 2017-08-11 12:19:31 +02:00
parent 1c87abbf2a
commit fc5e5e800f

View file

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