I have this angular controller
angular.module('partherApp')
.controller('MyCtrl', function ($scope) {
$scope.logToConsole = function() {
console.log('Here I am.');
};
});
and this view:
<div ng-controller="MyCtrl">
{{logToConsole()}}
</div>
When the application get's opened in the browser I can see that I get tree times 'Here I am.'
. I'd expected to get it once. Any ideas why this happens?