Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change between angularJs versions?
Message
 
 
À
Tous
Information générale
Forum:
Javascript
Catégorie:
Autre
Titre:
Change between angularJs versions?
Divers
Thread ID:
01616607
Message ID:
01616607
Vues:
28
Hi everybody,

I've noticed a change after we upgraded our angularJS version. We have the following (or similar) markup in many places:
<table id="guestHistoryTable" class="table table-bordered table-hover table-list" ng-show="guestHistoryData">
Note the ng-show here. Now, the guestHistoryData is [] but the table's header is still showing and prior to upgrade it would not show at all.

I am wondering if I have to change condition to
guestHistoryData.length > 0
here in all such places? Did you notice similar behavior?

UPDATE. Using
length > 0
indeed fixed the problem, but it means we would need to change all our forms.

Thanks in advance.
If it's not broken, fix it until it is.


My Blog
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform