From ebdcc0c7d6e1ce5186e06d64ee2a7134813d01e0 Mon Sep 17 00:00:00 2001 From: senty Date: Wed, 2 Aug 2017 16:26:08 +0200 Subject: [PATCH] model to watch can be "any" --- 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 9bcfb3a..17d25e8 100644 --- a/src/ng2fittext.directive.ts +++ b/src/ng2fittext.directive.ts @@ -10,7 +10,7 @@ export class Ng2FittextDirective implements AfterViewInit, OnInit, OnChanges { @Input('container') container: any; @Input('activateOnInputEvents') activateOnInputEvents: boolean; @Input('useMaxFontSize') useMaxFontSize: boolean; - @Input('modelToWatch') modelToWatch: string; + @Input('modelToWatch') modelToWatch: any; private maxFontSize: number = 1000; private fontSize: number = 0; private speed: number = 1.05;