2018年11月23日

angular2 2种方式----获取子组件的类属性和类方法

摘要: 1) 方法 父html文件<button (click)="onclickchildfun()">通过@ViewChild调用子组件方法</button> 父tsimport { Component, OnInit, ViewChild } from '@angular/core';import { 阅读全文

posted @ 2018-11-23 10:34 每天暴走三公里 阅读(619) 评论(0) 推荐(0) 编辑

导航