报错错误信息:
core.d.ts(7888, 47): An argument for 'opts' was not provided
原因:ViewChild需要两个参数,并没有提供opts
@ViewChild('myChild',{static:true}) child:any
报错错误信息:
core.d.ts(7888, 47): An argument for 'opts' was not provided
原因:ViewChild需要两个参数,并没有提供opts
@ViewChild('myChild',{static:true}) child:any