Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Correcting the syntax
Message
 
 
À
11/11/2014 01:49:04
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01610838
Message ID:
01610853
Vues:
27
>>>I changed the code to use
>>>
>>>
>>><a href="javascript:void(0);"><span ng-click="drillDown(result.invoiceNo)">{{result.invoiceNo}}</span></a>
>>>
>>>This didn't complain, I am testing now if that was the correct fix.
>
>It looks as if 'drilldown()' is a $scope method and 'result.invoiceNo' is a property of $scope ?
>If that is the case why are you bothering to pass it as a parameter ?

Because it's part of ng-repeat and result is a temp variable in ng-repeat directive, not a scope variable.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform