MCPcopy Index your code
hub / github.com/angular/angular / _tick

Method _tick

packages/core/src/application/application_ref.ts:541–552  ·  view source on GitHub ↗

@internal

()

Source from the content-addressed store, hash-verified

539
540 /** @internal */
541 _tick(): void {
542 profiler(ProfilerEvent.ChangeDetectionStart);
543
544 if (this.tracingSnapshot !== null) {
545 // Ensure we always run `tickImpl()` in the context of the most recent snapshot,
546 // if one exists. Snapshots may be reference counted by the implementation so
547 // we want to ensure that if we request a snapshot that we use it.
548 this.tracingSnapshot.run(TracingAction.CHANGE_DETECTION, this.tickImpl);
549 } else {
550 this.tickImpl();
551 }
552 }
553
554 private tickImpl = (): void => {
555 (typeof ngDevMode === 'undefined' || ngDevMode) && warnIfDestroyed(this._destroyed);

Callers 4

tickMethod · 0.95
tickMethod · 0.80
initializeMethod · 0.80
callbackMethod · 0.80

Calls 2

profilerFunction · 0.90
runMethod · 0.65

Tested by

no test coverage detected