本文整理汇总了TypeScript中angular2/src/platform/server/parse5_adapter.Parse5DomAdapter类的典型用法代码示例。如果您正苦于以下问题:TypeScript Parse5DomAdapter类的具体用法?TypeScript Parse5DomAdapter怎么用?TypeScript Parse5DomAdapter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Parse5DomAdapter类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: bootstrap
export function bootstrap(appComp: any, providers?: any) {
Parse5DomAdapter.makeCurrent();
return platform([ ELECTRON_APP_PLATFORM ])
.asyncApplication((z) => {
return z.run(() => {
return waitForAppReady()
.then(waitForPingback)
.then(() => {
return ELECTRON_APP_APPLICATION;
})
})
})
.then((appRef) => {
return appRef.bootstrap(appComp);
})
}
示例2: initServerTests
function initServerTests() {
Parse5DomAdapter.makeCurrent();
BrowserDetection.setup();
}
示例3:
// dom closure
import {Parse5DomAdapter} from 'angular2/src/platform/server/parse5_adapter';
Parse5DomAdapter.makeCurrent();
export {provide} from 'angular2/core';
export * from './directives/index';
export * from './http/index';
export * from './platform/index';
export * from './router/index';
export * from './bootloader';
export * from './helper';
export * from './ng_preboot';
export * from './render';
export * from './stringify_element';
export * from 'angular2-express-engine';
export * from 'angular2-hapi-engine';
示例4: initNodeAdapter
export function initNodeAdapter() {
Parse5DomAdapter.makeCurrent();
}