mercredi 20 mai 2015

AngulasJS {{ }} codes shows for a split second

How to avoid {{ }} codes from showing when the page is just starting up or loading AngularJS resources?

In my case, the {{ c }} is showing inside my dropdown which is really weird for my users.

I can't use ng-bind in my case because I am showing a variable from a ng-repeat inside the option html tags.

Here is the code,

<select ng-model="invoice.inCurrency">
    <option ng-repeat="c in invoice.currencies">{{ c }}</option>
</select>




Aucun commentaire:

Enregistrer un commentaire