feat(query): notify on changes
This commit is contained in:
@ -203,7 +203,12 @@ export class ChangeDetectorJITGenerator {
|
||||
}
|
||||
}
|
||||
|
||||
return notifications.join("\n");
|
||||
var directiveNotifications = notifications.join("\n");
|
||||
|
||||
return `
|
||||
this.dispatcher.notifyOnAllChangesDone();
|
||||
${directiveNotifications}
|
||||
`;
|
||||
}
|
||||
|
||||
_genLocalDefinitions(): string { return this._localNames.map((n) => `var ${n};`).join("\n"); }
|
||||
|
@ -110,6 +110,7 @@ export class DynamicChangeDetector extends AbstractChangeDetector {
|
||||
}
|
||||
|
||||
callOnAllChangesDone() {
|
||||
this.dispatcher.notifyOnAllChangesDone();
|
||||
var dirs = this.directiveRecords;
|
||||
for (var i = dirs.length - 1; i >= 0; --i) {
|
||||
var dir = dirs[i];
|
||||
|
Reference in New Issue
Block a user