Closed p-schuler closed 7 years ago
Hi
I think you should unregister the $parent.$watch handler on $destroy of your scope:
var wh = $scope.$parent.$watch($attrs.eventSource, function (value) { self.onEventSourceChanged(value); }); $scope.$on('$destroy', function () { wh(); });
@debugerr Good catch! I have fixed it in version 0.3.4. Thanks!
Hi
I think you should unregister the $parent.$watch handler on $destroy of your scope: