摘要: 一、@ViewChild 父组件中使用@ViewChild拿到子组件的变量和方法(父组件可调用子组件的方法和变量) parent.component.ts: child.component.ts: 二、@Inject 子组件中使用@Inject调用父组件中的变量和方法 parent.componen 阅读全文
posted @ 2017-07-27 13:59 枫叶布 阅读(2814) 评论(0) 推荐(0)