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

Function initNgDevMode

packages/core/src/util/ng_dev_mode.ts:80–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 * Details on possible values for `ngDevMode` can be found on its docstring.
79 */
80export function initNgDevMode(): boolean {
81 // The below checks are to ensure that calling `initNgDevMode` multiple times does not
82 // reset the counters.
83 // If the `ngDevMode` is not an object, then it means we have not created the perf counters
84 // yet.
85 if (typeof ngDevMode === 'undefined' || ngDevMode) {
86 if (typeof ngDevMode !== 'object' || Object.keys(ngDevMode).length === 0) {
87 ngDevModeResetPerfCounters();
88 }
89 return typeof ngDevMode !== 'undefined' && !!ngDevMode;
90 }
91 return false;
92}
93
94// This fixes the RollupError: Exported variable "global" is not defined.
95export {};

Callers 3

ɵɵdefineComponentFunction · 0.90
compileComponentFunction · 0.90
empty.tsFile · 0.90

Calls 2

keysMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…