Skip to content

Commit 9e6c11a

Browse files
committed
moving watcher reset on grid handle before apply (so it can catch the digest cycle and set initial last value)
1 parent 118fb5c commit 9e6c11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/igniteui-angular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@
9090
var unbinder;
9191
element.on($.ig.angular.igGrid.events.join(' '), function () {
9292
unbinder();
93-
scope.$apply();
9493
unbinder = scope.$watch(attrs.source, watchGridDataSource, true);
94+
scope.$apply();
9595
markWatcher(scope, "igGrid", attrs);
9696
}).one('$destroy', function() {
9797
unbinder();

0 commit comments

Comments
 (0)