Why does the one-time binding get called twice?
var app = angular.module('myApp', []);
app.controller('myCtrl', function($scope) {
$scope.bar = function() {
console.log('bar');
return 'bar';
}
});
<!DOCTYPE html>
<html>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
<span ng-bind="::bar()"></span>
</div>
</body>
</html>
The regular binding also behaves the same way (during first digest).