Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • This… would definitely work. But… damn, it feels like a bit of a heavyweight solution for what I would assume — possibly naively? — to be an exceptionally common problem. Commented Nov 26, 2014 at 21:24
  • It's not at all heavyweight, though - you're listening to a simple event, that's already being fired. It's about the lightest weight solution to this problem I can think of. $scope.$watch with a function is adding a lot more overhead, I would think. Commented Nov 26, 2014 at 21:26
  • 1
    Err, sorry, I mean heavyweight in terms of "it feels like a weird solution to what should be a common problem"? Commented Nov 26, 2014 at 21:27