I have controller:
function NameController($scope){
$scope.data = {
name: 'Alex',
}
}
and HTML
<div ng-controller="NameController">
<a href="#" onclick="alert( {{data.name}} );"> ClickMe </a>
</div>
Why it doesn't work and how make it works? Thanx.