摘要: 1. 子组件调用父组件的方法和数据 -- Input 装饰器 1. fatherComponent.html中 toChildStr -- 父组件中定义的数据 fatherMethod -- 父组件中的方法 fatherComponent -- 父组件本身, this指代父组件实例,通过 [fath 阅读全文
posted @ 2019-09-25 20:56 monkey-K 阅读(592) 评论(0) 推荐(0) 编辑