1.ts文件引入对应组件,写法如下:
@viewChild('CFCL') mktCFCL: DemoCFCLComponent;
2.对应html文件选择器要绑上对应的id,即CFCL,写法如下:
若DemoCFCLComponent组件对应的selector为 k-demoCFCL
<k-demoCFCL #CFCL></k-demoCFCL>
1.ts文件引入对应组件,写法如下:
@viewChild('CFCL') mktCFCL: DemoCFCLComponent;
2.对应html文件选择器要绑上对应的id,即CFCL,写法如下:
若DemoCFCLComponent组件对应的selector为 k-demoCFCL
<k-demoCFCL #CFCL></k-demoCFCL>