摘要: 链接 1. 父组件中调用子组件 <app-footer #footer></app-footer>2. 父组件中调用子组件的值 <button (click)="getChildMsg()">获取子组件的msg</button> @ViewChild('footer') footer: any;ge 阅读全文
posted @ 2022-08-29 14:13 jahoon 阅读(238) 评论(0) 推荐(0)