Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Change between angularJs versions?
Message
De
11/03/2015 03:40:55
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01616607
Message ID:
01616612
Vues:
33
>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.

Could you change the models so that guestHistoryData is undefined unless populated ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform