W3cubDocs

/Angular 2

enableDebugTools

Experimental Function

Class Export

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

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

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.

exported from @angular/platform-browser/index defined in @angular/platform-browser/src/browser/tools/tools.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v2.angular.io/docs/ts/latest/api/platform-browser/index/enableDebugTools-function.html