Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Angular question
Message
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01601977
Message ID:
01602066
Vues:
34
>>Interesting. Does if check for existence of the property, e.g. since I just added that displayName only in one particular file, would it bomb in others?
>>
>>I am going to try your suggestion and look into ng-if in more details.
>
>If it has the potential to not exist, you'd have to check for that:
>
>
><span ng-if="column.displayName == undefined || column.displayName == ''">{{column.name}}</span>
><span ng-if="column.displayName != undefined && column.displayName != ''">{{column.displayName}}</span>
>
In my quick tests this seems to work great. I now see normal descriptions in a few views I added that new property and original bad descriptions where we don't have them.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform