Angular: Empty Fiddle

http://angularjs.org/

HTML

<div ng-controller="MyCtrl">
    <h1 ng-repeat="item in func()">something</h1>
    <button ng-click="test()">test</button>
</div>

JavaScript

var myApp = angular.module('myApp',[]);

function MyCtrl($scope) {
    var x = '';
    $scope.func = function(){
      x = [{"property" : "value1"},{"property": "value2"}];
        return x;
    }
    $scope.test = function() {
      console.log(x[0].$$hashKey);
    };
}