{ "id": "api/platform-browser/enableDebugTools", "title": "enableDebugTools", "contents": "\n\n
\n
\n
\n \n API > @angular/platform-browser\n
\n \n
\n \n
\n

enableDebugToolslink

\n \n \n \n \n \n
\n \n \n\n
\n \n
\n

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

\n\n

See more...

\n
\n \n \n \n\n
\n \n\n enableDebugTools<T>(ref: ComponentRef<T>): ComponentRef<T>\n\n \n\n
Parameters
\n \n \n \n \n \n \n \n \n \n
\n \n ref\n ComponentRef\n \n \n
\n\n \n
Returns
\n

ComponentRef<T>

\n\n \n\n\n \n\n \n
\n\n\n \n\n \n\n
\n

Descriptionlink

\n

Usage:

\n
    \n
  1. Open developer console (e.g. in Chrome Ctrl + Shift + j)
  2. \n
  3. Type ng. (usually the console will show auto-complete suggestion)
  4. \n
  5. Try the change detection profiler ng.profiler.timeChangeDetection()\nthen hit Enter.
  6. \n
\n\n \n
\n\n\n\n \n\n\n
\n
\n\n\n" }