我需要重新恢复ng-repeat onChange
$scope.$watch('todos', function(newVal, oldVal) {
$scope.$apply(function(){
$scope.todos = newVal;
});
}, true);
可能我写了不好的代码并选择了不良的方式,所以也许我需要重写一些IDK
似乎您需要编写此代码块:
$timeout(() => {
$scope.todos = newVal;
}, 0);