docs(ivy): update global utils documentation references to window.ng

This commit is contained in:
Matias Niemelä 2019-01-31 12:51:35 -08:00
parent c0b383590e
commit f640941e1d
1 changed files with 4 additions and 4 deletions

View File

@ -30,13 +30,13 @@ import {getComponent, getContext, getDirectives, getHostElement, getInjector, ge
* */ * */
export const GLOBAL_PUBLISH_EXPANDO_KEY = 'ng'; export const GLOBAL_PUBLISH_EXPANDO_KEY = 'ng';
/* let _published = false;
* Publishes a collection of default debug tools onto `window._ng_`. /**
* Publishes a collection of default debug tools onto`window.ng`.
* *
* These functions are available globally when Angular is in development * These functions are available globally when Angular is in development
* mode and are automatically stripped away from prod mode is on. * mode and are automatically stripped away from prod mode is on.
*/ */
let _published = false;
export function publishDefaultGlobalUtils() { export function publishDefaultGlobalUtils() {
if (!_published) { if (!_published) {
_published = true; _published = true;
@ -58,7 +58,7 @@ export declare type GlobalDevModeContainer = {
}; };
/** /**
* Publishes the given function to `window.ngDevMode` so that it can be * Publishes the given function to `window.ng` so that it can be
* used from the browser console when an application is not in production. * used from the browser console when an application is not in production.
*/ */
export function publishGlobalUtil(name: string, fn: Function): void { export function publishGlobalUtil(name: string, fn: Function): void {