angular 父子组件传值@Input @Output @ViewChild

angular  父子组件传值@Input @Output @ViewChild 中文官网app 1、 父组件给子组件传值 -@Input  1. 父组件调用子组件的时候传入数据this <app-header [msg]="msg"></app 2. 子组件引入 Input 模块code import { Component, OnInit ,Input } from '@angular/cor
相关文章
相关标签/搜索