本文整理汇总了TypeScript中@angular/platform-browser.enableDebugTools函数的典型用法代码示例。如果您正苦于以下问题:TypeScript enableDebugTools函数的具体用法?TypeScript enableDebugTools怎么用?TypeScript enableDebugTools使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了enableDebugTools函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: enableDebugTools
_decorateModuleRef = (modRef: any) => {
const appRef = modRef.injector.get(ApplicationRef);
const cmpRef = appRef.components[0];
enableDebugTools(cmpRef);
return modRef;
};
示例2: enableDebugTools
_decorateComponentRef = (cmpRef) => {
// rc2 workaround
// let _ng = (<any>window).ng;
enableDebugTools(cmpRef);
// (<any>window).ng.probe = _ng.probe;
// (<any>window).ng.coreTokens = _ng.coreTokens;
return cmpRef;
};
示例3: enableDebugTools
.then((appRef :ComponentRef<any>) => {
appProvider.app = appRef;
if (!CONFIG.production) {
CONFIG.enableDebugTools && enableDebugTools(appRef);
}
setTimeout(() => ngOnLoad(window, document), 100);
})
示例4: enableDebugTools
_decorateModuleRef = (modRef: any) => {
const appRef = modRef.injector.get(ApplicationRef);
const cmpRef = appRef.components[0];
const _ng = (window as any).ng;
enableDebugTools(cmpRef);
(window as any).ng.probe = _ng.probe;
(window as any).ng.coreTokens = _ng.coreTokens;
return modRef;
};
示例5: disableDebugTools
export function enableEnvironmentTools<T>(rootComponentRef: ComponentRef<T>): ComponentRef<T> {
if ('production' === ENV) {
disableDebugTools();
enableProdMode();
return rootComponentRef;
}
let ng: NgDebugger = window.ng;
let componentRef = enableDebugTools(rootComponentRef);
window.ng.probe = ng.probe;
window.ng.coreTokens = ng.coreTokens;
return componentRef;
}
示例6: platformBrowserDynamic
platformBrowserDynamic().bootstrapModule(AppModule).then((ref: any) => {
enableDebugTools(ref);
});
示例7: enableDebugTools
_decorateComponentRef = (cmpRef) => enableDebugTools(cmpRef);
示例8:
.then(ref => (enableDebugTools(ref), ref));