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.

3
  • Because your ng-click did not update the child variable. Your child variable got initialized but never got updated. Commented Mar 24, 2015 at 20:07
  • @TechCrunch I'm not interested in changing the child variable specifically, though...I'm interested in the child value auto-updating to reflect the "current" variable it was pointing to. Is there another mechanism that is designed to observe changes to $rootScope? Commented Mar 24, 2015 at 20:09
  • 1
    yes, you should use $watch or $watchCollection Commented Mar 24, 2015 at 20:26