1

我将 lokiJs 用于 angualJS 应用程序。我尝试使用数组更新集合中的一个对象。但是数组中的数据丢失了!

$scope.seance from loki , exos is internal array
$scope.seance.exos.push($scope.exo);
try{
    $scope.seances.update($scope.seance);
}catch(err){
     console.log(err);
     alert('cant update');
}
$scope.seances.commit();
db.saveDatabase();

非常感谢你的帮助!

4

0 回答 0