W3cubDocs

/Angular 10

enableDebugTools

function

Enabled Angular debug tools that are accessible via your browser's developer console.

See more...

enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>

Parameters
ref ComponentRef
Returns

ComponentRef<T>

Description

Usage:

  1. Open developer console (e.g. in Chrome Ctrl + Shift + j)
  2. Type ng. (usually the console will show auto-complete suggestion)
  3. Try the change detection profiler ng.profiler.timeChangeDetection() then hit Enter.

© 2010–2020 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v10.angular.io/api/platform-browser/enableDebugTools