當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript view_utils.selectOrCreateRenderHostElement函數代碼示例

本文整理匯總了TypeScript中@angular/core/src/linker/view_utils.selectOrCreateRenderHostElement函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript selectOrCreateRenderHostElement函數的具體用法?TypeScript selectOrCreateRenderHostElement怎麽用?TypeScript selectOrCreateRenderHostElement使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了selectOrCreateRenderHostElement函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: createInternal

 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);
   this._TreeComponent_0_4 = new _View_TreeComponent0(this._el_0);
   this.init([].concat([this._el_0]), [this._el_0], []);
   return new import9.ComponentRef_(0, this, this._el_0, this._TreeComponent_0_4.context);
 }
開發者ID:doxiaodong,項目名稱:angular,代碼行數:8,代碼來源:tree_host.ngfactory.ts

示例2: createInternal

 createInternal(rootSelector: string): import9.ComponentRef<any> {
   this._el_0 = import4.selectOrCreateRenderHostElement(
       this.renderer, 'tree', import4.EMPTY_INLINE_ARRAY, rootSelector, (null as any));
   this._appEl_0 = new import2.ViewContainer(0, (null as any), this, this._el_0);
   this._TreeRootComponent_0_4_View =
       viewFactory_TreeRootComponent0(this.viewUtils, this, 0, this._el_0);
   this._TreeRootComponent_0_4 = new import3.TreeRootComponent();
   this._TreeRootComponent_0_4_View.create(this._TreeRootComponent_0_4, (null as any));
   this.init([].concat([this._el_0]), [this._el_0], []);
   return new import9.ComponentRef_(0, this, this._el_0, this._TreeRootComponent_0_4);
 }
開發者ID:rahulchaturvedie,項目名稱:angular,代碼行數:11,代碼來源:tree_root.ngfactory.ts

示例3: createInternal

 createInternal(rootSelector: string): import2.AppElement {
   this._el_0 = import4.selectOrCreateRenderHostElement(
       this.renderer, 'tree', import4.EMPTY_INLINE_ARRAY, rootSelector, (null as any));
   this._appEl_0 = new import2.AppElement(0, (null as any), this, this._el_0);
   var compView_0: any =
       viewFactory_TreeRootComponent0(this.viewUtils, this.injector(0), this._appEl_0);
   this._TreeRootComponent_0_4 = new import3.TreeRootComponent();
   this._appEl_0.initComponent(this._TreeRootComponent_0_4, [], compView_0);
   compView_0.create(this._TreeRootComponent_0_4, this.projectableNodes, (null as any));
   this.init([].concat([this._el_0]), [this._el_0], [], []);
   return this._appEl_0;
 }
開發者ID:efidiles,項目名稱:angular,代碼行數:12,代碼來源:tree_root.ngfactory.ts


注:本文中的@angular/core/src/linker/view_utils.selectOrCreateRenderHostElement函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。