enableDebugToolslink
Enabled Angular debug tools that are accessible via your browser's developer console.
参数
ref | Type: |
返回值
ComponentRef<T>
说明
Usage:
- Open developer console (e.g. in Chrome Ctrl + Shift + j)
- Type
ng.
(usually the console will show auto-complete suggestion) - Try the change detection profiler
ng.profiler.timeChangeDetection()
then hit Enter.