首页 > TAG信息列表 > phero

angular父子组件方法互调方案

父组件调用子组件 不写了上地址 https://blog.csdn.net/xuehu837769474/article/details/80072556 子组件调用父组件 先了解组件之间的交互 https://angular.cn/guide/component-interaction 父组件html, hero 是父组件向子组件传书的参数 <app-child #child1 [hero]="phero">