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