本文整理匯總了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));