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