天天看點

java擷取元件的事件,沒有從啞元件中擷取事件

我無法從愚蠢的元件中擷取該事件 . 我認為它有效,但沒有将事件綁定到智能元件 . 輸出正常,但是當我更改事件的值不起作用并且沒有顯示錯誤 .

// planet-data.component.html(智能元件)

// planet-data.component.ts

onSelect(event: Cam) {

if (event.name === 'CHEMCAM') {

this.loading = true;

this.getCamType();

} else {

this.loading = true;

event.name === 'NAVCAM' ? this.getCamType('spirit', 'navcam') : this.getCamType('opportunity', 'fhaz');

}

}

// dropdown-menu.component.html(啞元件)

(ngModelChange)="getDisplayCam($event)">

// dropdown-menu.component.ts

getDisplayCam(event: Cam) {

this.selected.emit(event);

}

// planet-view.component.html(另一個Dumb元件)

java擷取元件的事件,沒有從啞元件中擷取事件

{{pic.earth_date | date}}

{{title}}