Hey
thanks for ng-FitText, which is great.
I am using it in an Ionic (1) app, and I am experiencing big performance issue when transitionning to a page that contains a fittext directive. The digest cycle is called again several times, and my users can wait 5 seconds to see the next page.
One of the fittext directive is on the items of a ng-repeat.
<ion-slide ng-repeat="s in sliderPages">
<ul>
<!-- <li ng-repeat="item in prodata | matchingProBrand:data.computed.proName:data.computed.proBrand | limitTo:s*sliderItemNumber+sliderItemNumber | limitTo:-sliderItemNumber"> -->
<li ng-repeat="item in suggestionList | limitTo:s*sliderItemNumber+sliderItemNumber:s*sliderItemNumber ">
<a class="suggestPro item-content" ng-click="itemID=item.id;changeisFlash();launchComputeService(item.id);">
<span><img ng-src={{imagesUrls[item.imageName]}} /></span>
<p class="flex-caption" ng-class="item.fun == '0' ? 'aNormal' :( item.fun == '1' ? 'aSmallWave' : (item.fun == '2' ? 'aStepUp' : ''))" fittext fittext-min="8" fittext-max="12" ng-bind="item.model + ' - ' + (item.name | split:' ':0)" > {{item.model}} - {{item.name | split:' ':0}}</p>
</a>
</li>
</ul>
</ion-slide>
Do you have an idea to help me on this ?
Hey
thanks for ng-FitText, which is great.
I am using it in an Ionic (1) app, and I am experiencing big performance issue when transitionning to a page that contains a fittext directive. The digest cycle is called again several times, and my users can wait 5 seconds to see the next page.
One of the fittext directive is on the items of a ng-repeat.
Do you have an idea to help me on this ?