I'm having trouble binding the Grid to JSON data which is being delivered across a SignalR PersistentConnection with AngularJS. I'm not using hubs - effectively all that happens is a scope property is being updated, and I'd like the grid to update.
The relevant code that is called on update is:
/* ----- List of Sessions --------------- */
$rootScope.$on('Sessions', function (event, result) {
$scope.$apply(function () {
console.log(result);
$scope.result = result;
});
});
I want to bind the grid to $scope.result during the common lifetime of the grid and the connection. I've traced the code above and it's returning a repeating collection of JSON objects in a single parent object called 'data'. It looks like I'm missing something really simple, but I've been through lots of example code and still can't make it work.
Thank you
Colin Dixon