Angular父子组件传值方式

通过Input和Ouput传值 父组件:html和ts 子组件:html和ts 通过setter监听属性的变化 父组件同上,子组件: 通过ngOnChanges钩子函数监听输入属性的变化 ngOnCh