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


TypeScript view_utils.createRenderComponentType函数代码示例

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


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

示例1: constructor

import * as import5 from '@angular/core/src/di/injector';
import * as import9 from '@angular/core/src/linker/component_factory';
import * as import11 from '@angular/core/src/linker/template_ref';
import * as import1 from '@angular/core/src/linker/view';
import * as import2 from '@angular/core/src/linker/view_container';
import * as import6 from '@angular/core/src/linker/view_type';
import * as import4 from '@angular/core/src/linker/view_utils';
import * as import8 from '@angular/core/src/metadata/view';
import * as import0 from '@angular/core/src/render/api';
import * as import12 from '@angular/core/src/security';

import * as import3 from './tree';
import {_View_TreeComponent0} from './tree.ngfactory';

var renderType_TreeComponent_Host: import0.RenderComponentType =
    import4.createRenderComponentType('', 0, import8.ViewEncapsulation.None, [], {});
class _View_TreeComponent_Host0 extends import1.AppView<any> {
  _el_0: any;
  _vc_0: import2.ViewContainer;
  _TreeComponent_0_4: _View_TreeComponent0;
  constructor(
      viewUtils: import4.ViewUtils, parentView: import1.AppView<any>, parentIndex: number,
      parentElement: any) {
    super(
        _View_TreeComponent_Host0, renderType_TreeComponent_Host, import6.ViewType.HOST, viewUtils,
        parentView, parentIndex, parentElement, import7.ChangeDetectorStatus.CheckAlways);
  }
  createInternal(rootSelector: string): import9.ComponentRef<any> {
    this._el_0 = import4.selectOrCreateRenderHostElement(
        this.renderer, 'tree', import4.EMPTY_INLINE_ARRAY, rootSelector, (null as any));
    this._vc_0 = new import2.ViewContainer(0, (null as any), this, this._el_0);
开发者ID:doxiaodong,项目名称:angular,代码行数:31,代码来源:tree_host.ngfactory.ts

示例2: constructor

import * as import1 from '@angular/core/src/linker/view';
import * as import2 from '@angular/core/src/linker/view_container';
import * as import6 from '@angular/core/src/linker/view_type';
import * as import4 from '@angular/core/src/linker/view_utils';
import * as import8 from '@angular/core/src/metadata/view';
import * as import0 from '@angular/core/src/render/api';

import {maxDepth} from '../util';

import {checkBinding} from './ftl_util';
import * as import3 from './tree';
import * as import12 from './tree';
import * as import13 from './tree_branch.ngfactory';

var renderType_TreeRootComponent_Host: import0.RenderComponentType =
    import4.createRenderComponentType('', 0, import8.ViewEncapsulation.None, [], {});
class _View_TreeRootComponent_Host0 extends import1.AppView<any> {
  _el_0: any;
  /*private*/ _appEl_0: import2.ViewContainer;
  _TreeRootComponent_0_4: import3.TreeRootComponent;
  _TreeRootComponent_0_4_View: any;
  constructor(
      viewUtils: import4.ViewUtils, parentView: import1.AppView<any>, parentIndex: number,
      parentElement: any) {
    super(
        _View_TreeRootComponent_Host0, renderType_TreeRootComponent_Host, import6.ViewType.HOST,
        viewUtils, parentView, parentIndex, parentElement,
        import7.ChangeDetectorStatus.CheckAlways);
  }
  createInternal(rootSelector: string): import9.ComponentRef<any> {
    this._el_0 = import4.selectOrCreateRenderHostElement(
开发者ID:JSMike,项目名称:angular,代码行数:31,代码来源:tree_root.ngfactory.ts


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