1

This is driving me crazy.

I have a log filter.

angular.module('myApp').filter('log', [function() {
  return function(content) {
    console.log(content);
    return content;
  };
}]);

In my controller:

$scope.myValue = 'Test';

And in my view:

{{::myValue | log}}

And every time the $digest cycle is called, myValue gets loggued 2 times, which shouldn't because of one-way-data-binding.

It has been 3 hours I stuck on this. I have been trying to reproduce in a plunker, without success. :(

Augustin Riedinger
  • 20,909
  • 29
  • 133
  • 206

1 Answers1

2

Thanks to this SO answer, I found the culprit after few hours.

It was Angular Batarang, now removed from my Chrome forever.

Community
  • 1
  • 1
Augustin Riedinger
  • 20,909
  • 29
  • 133
  • 206