angular2
Version:
Angular 2 - a web framework for modern web apps
18 lines (17 loc) • 600 B
TypeScript
import { ComponentRef } from 'angular2/src/core/linker/component_factory';
/**
* 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)
* 1. Type `ng.` (usually the console will show auto-complete suggestion)
* 1. Try the change detection profiler `ng.profiler.timeChangeDetection()`
* then hit Enter.
*/
export declare function enableDebugTools(ref: ComponentRef): void;
/**
* Disables Angular 2 tools.
*/
export declare function disableDebugTools(): void;