Closed louisdoe closed 8 years ago
Is it possible to "refresh" the action of ng-fitText please ?
Could you create a demo (jsfiddle etc) to demonstrate the requirement / issue?
yes here it is: http://codepen.io/LouisDoe/pen/rxGQpZ
http://codepen.io/anon/pen/wMrQRq
showPopup
methoddata-ng-model="data.proModel"
attribute for dynamic text. This is a bug, though - as both ng-model
and {{}}
binding shouldn't be required for dynamic text to work properlyHave a look at the demo page in the repo for more examples.
I see I spudded out when I added the dynamic stuff. ngModel
instead of ngBind
. Duhh.
Thanks a lot @patrickmarabeas, so the solution to my problem was to add data-ng-model="" to my element so it can dynamically resize.
@patrickmarabeas how should I do if there are several variable like this:
<div class="fittedRes" data-fittext data-fittext-max="12">
{{computed.userLengthFtin}} x {{computed.userWidthFtin}} x {{computed.userThickFtin}}
</div>
Exactly the same. data-ng-model="computed.userLengthFtin + ' x ' + ... "
ok perfect, thanks Patrick !
Hi
how to dynamically call ng-fitText to resize some text that has been dynamically insterted ?
thanks