I have an Angular function where I register a value
$scope.getFormattedDate = function(date){ console.log(date) }
and here in the html code
span {{::getFormattedDate('hello')}}
Accordingly, the value should be displayed once and never again. But when I scroll, the value is continuously printed on the console.
Where am I wrong?
angularjs
Anubhav
source share