SyntaxFix
Write A Post
Hire A Developer
Questions
You could use a watch instead, because that has the old and new value, but then you're adding to the digest cycle.
I'd just keep a second variable in the controller and set that.