You need to use then
with your promise.
asyncInit().then(function(data){
$scope.deferredPersons = data;
});
From here on, you have access to your data per usual, and can call .length
on it. Note, you should always handle errors when using promises, otherwise it can get hard to debug.