enableDebugTools

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

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

参数

ref

Type: ComponentRef.

返回值

ComponentRef<T>

说明

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.