Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ApplicationRef {
- tick() {
- if (this._runningTick) {
- throw new Error('ApplicationRef.tick is called recursively');
- }
- const scope = ApplicationRef._tickScope();
- try {
- this._runningTick = true;
- this._views.forEach((view) => view.detectChanges());
- if (this._enforceNoNewChanges) {
- this._views.forEach((view) => view.checkNoChanges());
- }
- }
- catch (e) {
- // Attention: Don't rethrow as it could cancel subscriptions to Observables!
- this._zone.runOutsideAngular(() => this._exceptionHandler.handleError(e));
- }
- finally {
- this._runningTick = false;
- wtfLeave(scope);
- }
- }
- }
Add Comment
Please, Sign In to add comment