Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Correcting the syntax
Message
De
11/11/2014 10:45:42
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01610838
Message ID:
01610860
Vues:
28
>>>>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.

Ah, OK....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform