Angular5 父组件调用子组建

1.父组件注入子组建

@ViewChild(SonComponent)son:SonComponent;

2.在父组调用子组建get方法

this.son.get(); //调用get方法

-------------本文结束感谢您的阅读-------------
0%