I’m using angular-meteor 1.3.2 - great work! I’m also using Angular 1 (haven’t tried 2 yet).
Updates to an object in my view (or even when I hard code a change in the the controller) aren’t getting posted to Mongo but the subscribes otherwise seem to work.
Here’s my controller:
$scope.subscribe('foursomes'); $scope.subscribe('roundsByFoursome', () => [$stateParams.id]);
$scope.helpers({ foursome() { return Foursomes.findOne($stateParams.id) }, roundList() { return Rounds.find({ foursomeId: $stateParams.id })} });
Here’s a modified version where I directly update the roundList in onReady and I would expect the value to be pushed to mongo but it is not:
$scope.subscribe('roundsByFoursome', () => [$stateParams.id], { onReady: function () { $scope.roundList[0].grossScores[9] = 9; }, onError: function () { console.log('onError roundsByFoursome return'); } });