-
Notifications
You must be signed in to change notification settings - Fork 618
Description
I have a variable that updates and is being called inside an autorun function.
If I watch the variable with $scope.$watch
I see it changes. However, it's not triggering the autorun function.
Example reproduction:
https://github.com/sebakerckhof/ngmeteor-bug
If you run the application, you'll see a list. Clicking on the list updates an element in minimongo, which in turns changes a variable. The variable is passed to another component, which should trigger an update, but it doesn't.
E.g. this line is being called: https://github.com/sebakerckhof/ngmeteor-bug/blob/master/imports/ui/foo-details/foo-details.component.js#L18
But not this one: https://github.com/sebakerckhof/ngmeteor-bug/blob/master/imports/ui/foo-details/foo-details.component.js#L23
I know I could probably create the application in a different way, but this is a minimal reproduction of a more complex scenario where this flow is justified.
ping @Urigo