子組件javascript
import { Component, Input, Output,EventEmitter } from '@angular/core'; @Input() crrunKm: any; @Output() getCrrunKmChange = new EventEmitter<any>(); this.getCrrunKmChange.emit(newVaule);
父組件java
<parent-compononet (getSearchStatusChange)="myCallback($event)" #modelNo></parent-compononet>