I use the Angular-Bootstrap Carousel directive and make some changes on top of it. Carousel had ng-repeatfor slides.
I am trying to move to the next / previous slide by moving the right / left controls, rather than clicking. And achieving this by changing the state object.active(previously false - new to true)
In any case, after several rounds, all my objects active=falseand the carousel do not display anything. After debugging the array and $watchon each object, I found that when it goes wrong, it is because the directive somehow changes active=falsewhen I do not expect this.
In short: Is it possible to somehow get the call stack of an object in the area that I am viewing using $watch?
My watch code, for example, is as follows:
$scope.$watch('requestFilters[0]', function(obj) {
console.log('Item 0 changed');
}, true);
Alexd source
share