We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc1662a commit 7b67badCopy full SHA for 7b67bad
modules/@angular/platform-browser/src/browser/tools/tools.ts
@@ -37,5 +37,7 @@ export function enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T> {
37
* @experimental All debugging apis are currently experimental.
38
*/
39
export function disableDebugTools(): void {
40
- delete context.ng.profiler;
+ if (context.ng) {
41
+ delete context.ng.profiler;
42
+ }
43
}
0 commit comments