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