Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What can be used instead of ng-change?
Message
From
07/11/2015 02:29:25
 
General information
Forum:
Javascript
Category:
Other
Miscellaneous
Thread ID:
01627133
Message ID:
01627196
Views:
47
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform