Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What can be used instead of ng-change?
Message
De
07/11/2015 02:29:25
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01627133
Message ID:
01627196
Vues:
45
>Hi Viv,
>
>I went with slightly different solution, but I am wondering if this can be simplified.
>
>I want to set a variable 'somethingChanged = true' when I change a value. I tried
>
>ng-change = "somethingChanged = true" but that didn't work and I had to create a scope method to set a single variable. Do you know if it is possible to use direct assignment?

No. ng-change takes an Expression. The definition of an Expression in JavaScript is something that resolves to a value; 'something=changed' does not.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform