本文整理汇总了TypeScript中@angular/core.ViewContainerRef.createEmbeddedView方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ViewContainerRef.createEmbeddedView方法的具体用法?TypeScript ViewContainerRef.createEmbeddedView怎么用?TypeScript ViewContainerRef.createEmbeddedView使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类@angular/core.ViewContainerRef
的用法示例。
在下文中一共展示了ViewContainerRef.createEmbeddedView方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: constructor
constructor(private _viewContainer: ViewContainerRef, private _templateRef: TemplateRef<Object>,
private _loadingService: TdLoadingService) {
this._viewContainer.createEmbeddedView(this._templateRef);
}
示例2:
items.forEach(item => {
this.viewContainer.createEmbeddedView(this.templateRef);
});
示例3: ngOnInit
ngOnInit() {
let view = this.viewContainer.createEmbeddedView(this.templateRef, {
'\$implicit': this.item
});
}
示例4: create
create() { this.vcref.createEmbeddedView(this.tplRef); }
示例5: setTimeout
setTimeout(() => {
this._viewContainerRef.createEmbeddedView(this._templateRef);
}, 300);
示例6: edgeTimes
@Input() set edgeTimes(times: number) {
this._viewContainer.clear();
for (let i = 0; i < times; i++) this._viewContainer.createEmbeddedView(this._templateRef);
}
示例7: load
private load() {
this.container.createEmbeddedView(this.template);
}
示例8: autolabel
autolabel() {
console.log("autolabel");
this.viewContainer.createEmbeddedView(this.templateRef);
}
示例9: constructor
constructor(vcref: ViewContainerRef, tplRef: TemplateRef<any>) {
vcref.createEmbeddedView(tplRef);
}
示例10: ngOnInit
public ngOnInit() {
if (this.template !== undefined) {
this.container.createEmbeddedView(this.template, this);
}
}