当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript platform-server.Parse5DomAdapter类代码示例

本文整理汇总了TypeScript中@angular/platform-server.Parse5DomAdapter的典型用法代码示例。如果您正苦于以下问题:TypeScript Parse5DomAdapter类的具体用法?TypeScript Parse5DomAdapter怎么用?TypeScript Parse5DomAdapter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了Parse5DomAdapter类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: initNodeAdapter

export function initNodeAdapter() {
  Parse5DomAdapter.makeCurrent();
}
开发者ID:BerniceChua,项目名称:landr,代码行数:3,代码来源:node.ts

示例2:

// dom closure
import {Parse5DomAdapter} from '@angular/platform-server';
Parse5DomAdapter.makeCurrent();

export {provide, Inject, Optional, enableProdMode} from '@angular/core';

export * from './directives/index';

export * from './http/index';

export * from './pipes/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';
开发者ID:BerniceChua,项目名称:landr,代码行数:23,代码来源:node.ts

示例3: getDOM

import {ELEMENT_PROBE_PROVIDERS, BROWSER_SANITIZATION_PROVIDERS} from '@angular/platform-browser';
import {DOCUMENT} from '@angular/platform-browser/src/dom/dom_tokens';
import {DomRootRenderer} from '@angular/platform-browser/src/dom/dom_renderer';
import {RootRenderer} from '@angular/core/src/render/api';

import {TemplateParser} from '@angular/compiler/src/template_parser';

import {NodeDomRootRenderer_} from './dom/node_dom_renderer';
import {NodeXHRImpl} from './node_xhr_impl';
import {NodeSharedStylesHost} from './node_shared_styles_host';
import {NodeTemplateParser} from './node_template_parser';
import {NODE_PLATFORM_DIRECTIVES} from '../directives';

var CONST_EXPR = v => v;
import {Parse5DomAdapter} from '@angular/platform-server';
Parse5DomAdapter.makeCurrent(); // ensure Parse5DomAdapter is used
import {getDOM} from '@angular/platform-browser/src/dom/dom_adapter';
var DOM: any = getDOM();

export function initNodeAdapter() {
  Parse5DomAdapter.makeCurrent();
}

export const NODE_APP_PLATFORM_MARKER = new OpaqueToken('NodeAppPlatformMarker');

export const NODE_APP_PLATFORM: Array<any> = CONST_EXPR([
  ...PLATFORM_COMMON_PROVIDERS,
  new Provider(NODE_APP_PLATFORM_MARKER, {useValue: true}),
  new Provider(PLATFORM_INITIALIZER, {useValue: initNodeAdapter, multi: true}),
]);
开发者ID:BerniceChua,项目名称:landr,代码行数:30,代码来源:node.ts


注:本文中的@angular/platform-server.Parse5DomAdapter类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。