I am doing this:
vm.helpers({
shot: function() {
return Shots.findOne({ _id: $stateParams.shotId });
}
})
vm.subscribe(‘shots’);
vm.videoContent = vm.shot.version[vm.shot.version.length-1].videourl
//this is undefined because the shot object is not ready yet. is there a callback or a promise i can use?