문제

I'm using SlickGrid v2.2 with angularjs. after reordering columns on the grid further scope changes are being made, so I need to call scope.$apply as follows:

grid.onColumnsReordered.subscribe(function (e, args) {
    scope.$apply(function () {
        onColumnsReordered(grid.getColumns());
    });
});

upgrading angularjs to v1.2.16 resulted in getting scope.$apply to be noop(), as well as $digest, and the $parent and $root fields are null. I've tried the latest v1.3 and it happens there as well. on v1.2.15 and below and it does not happen.

Why scope.$apply is noop()?

Thanks.

도움이 되었습니까?

해결책

It turns out there was a $destroy somewhere on the code, that is probably only relevant to an older version. Removing these $destroy solved all the problems.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top