Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting errors :(
Message
De
11/08/2017 05:20:59
 
 
Information générale
Forum:
AngularJS
Catégorie:
Compilation
Divers
Thread ID:
01653229
Message ID:
01653236
Vues:
55
>Hi everybody,
>
>I have the following HTML
>
>
><div id="tagsList" class="tags-cloud col-xs-12">
>                    <div ng-repeat="filter in filters.filters">
>                        <div class="tag">
>                            <span><span>{{filter.columnDisplayName + " "}}</span>
>                            <span class="operator">{{filter.strOperator}}</span>
>                            <span>{{' "' + filter.displayValue + '"'}}</span></span>
>                            <span><b ng-click="removeFilter($index)" class="cross">x</b></span>
>                        </div>
>                        <span class="logic" ng-show="!$last">{{filters.logic}}</span>
>                    </div>
>                </div>
>
>I want to change the {{filter.strOperator}} into
>
>{{getOperatorDescription(filter.strOperator)}}
>
>However, I am getting errors when I try that.
>
>First time it works, then the second time I get
>
>TypeError: Cannot create property 'value' on string ''
>
>I am not sure how should I make it to work.
>
>Thanks in advance.

So what's in getOperatorDescription() ?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform