sollenne / angular-fittext

Angular Directive to auto-scale text to fit it's parent container. (fittext.js)
https://www.npmjs.com/package/angular-fittext
33 stars 18 forks source link

use innerHTML instead ngModel #22

Closed mburger81 closed 5 years ago

mburger81 commented 6 years ago

We tried to use your ngModel (which is not documented) but it doesn't work we got some errors on, so we changed it to innerHTML input property which works well. Also we add a delay property to setFontSize which we set to 0 if setFontSize is called on angular's live cycles. Only on window:resize we keep the default or passed delay time.

jstebenne commented 5 years ago

This has been inactive for a while.

What changes do you want in the readme?

Can we merge this and make the readme change right after? (since it's saying that the source repository is unknown and probably deleted) I am willing to make the changes if necessary.