ComponentFactory取得DOM节点
来源:互联网 发布:托业网络课程 编辑:程序博客网 时间:2024/05/22 12:32
取得DOM节点:
ComponentFactoryResolver.resolveComponentFactory.create.location.nativeElement
class ComponentFactoryResolver { static NULL: ComponentFactoryResolver resolveComponentFactory<T>(component: Type<T>):ComponentFactory<T>}
class ComponentFactory<C> { get selector(): string get componentType(): Type<any> get ngContentSelectors(): string[] get inputs(): {propName: string, templateName: string}[] get outputs(): {propName: string, templateName: string}[] create(injector: Injector, projectableNodes?: any[][], rootSelectorOrNode?: string|any, ngModule?: NgModuleRef<any>): ComponentRef<C>}
class ComponentRef<C> { get location(): ElementRef get injector(): Injector get instance(): C get hostView(): ViewRef get changeDetectorRef(): ChangeDetectorRef get componentType(): Type<any> destroy(): void onDestroy(callback: Function): void}
class ElementRef { nativeElement: any}
阅读全文
0 0
- ComponentFactory取得DOM节点
- ComponentFactory
- ComponentFactory
- Javascript DOM节点链获取,并取得其中需要的父节点
- DOM节点
- DOM-节点
- dom节点
- DOM节点
- DOM节点
- DOM 节点
- dom节点
- DOM节点
- DOM节点
- DOM 节点
- DOM 节点
- DOM节点
- DOM节点
- DOM节点
- wordpress安装主题或插件时需要FTP帐号的解决办法
- SSM(Spring+SpringMVC+MyBatis)框架详细整合。
- VS如何插入带时间的自定义注释
- HDU-5929 Basic Data Structure
- Android进阶#(1/12)Android的构成基石——四大组件_Service与AIDL
- ComponentFactory取得DOM节点
- Android开发中windowSoftInputMode属性详解
- 廖雪峰《python3 基础教程》读书笔记——第十九章 电子邮件
- 决策树
- ubuntu16.04配置py-faster-rcnn
- Khatri-Rao积(KR积)
- NFS(Network File System) Configuration
- UEditor + golang 实现图片上传
- Storm+Kafka+Hbase的wordcount统计