Augustin Riedinger
Augustin Riedinger

Reputation: 22198

Angular: One way data-binding not working

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. :(

Upvotes: 1

Views: 127

Answers (1)

Augustin Riedinger
Augustin Riedinger

Reputation: 22198

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

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

Upvotes: 2

Related Questions