model to watch can be "any"

This commit is contained in:
senty 2017-08-02 16:26:08 +02:00
parent 7aa80b161d
commit ebdcc0c7d6

View file

@ -10,7 +10,7 @@ export class Ng2FittextDirective implements AfterViewInit, OnInit, OnChanges {
@Input('container') container: any; @Input('container') container: any;
@Input('activateOnInputEvents') activateOnInputEvents: boolean; @Input('activateOnInputEvents') activateOnInputEvents: boolean;
@Input('useMaxFontSize') useMaxFontSize: boolean; @Input('useMaxFontSize') useMaxFontSize: boolean;
@Input('modelToWatch') modelToWatch: string; @Input('modelToWatch') modelToWatch: any;
private maxFontSize: number = 1000; private maxFontSize: number = 1000;
private fontSize: number = 0; private fontSize: number = 0;
private speed: number = 1.05; private speed: number = 1.05;