Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

enableDebugTools

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<T>
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.