>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only