ivanesi,
<!DOCTYPE HTML>
<html lang="en" ng-app>
<head>
<title>test</title>
<style type="text/css">
a{
display: block;
}
</style>
<script src="http://code.angularjs.org/1.2.18/angular.min.js" ></script>
<script>
function StateController($scope){
$scope.data = {
name: 'Alex'
} ;
$scope.show = function(i) {
alert(i)
};
}
</script>
</head>
<body>
<div ng-controller="StateController" >
<a href="#" ng-click="show(data.name)" > ClickMe </a>
</div>
</body>
</html>