Open ekundayo-ab opened 4 years ago
Hi! Any update on this feature? or at least a workaround :thinking:
I did this. child component MapRouteComponent:
<button
(click)="getEcaZones()"
></button>
@Output() requestEcaZones = new EventEmitter();
public getEcaZones() {
this.requestEcaZones.emit();
}
parent:
<div style="display: flex">
<h4 kendoWindowContainer>some</h4>
<span
(click)="openMap()"
></span>
</div>
public openMap() {
const windowRef = this.windowService.open({
title: 'Map',
content: MapRouteComponent,
width: 1400,
height: 1000,
top: 200,
left: 300,
});
const mapRouteInfo = windowRef.content.instance;
mapRouteInfo.requestEcaZones
.pipe(
map(() => {
// get eca data
})
)
.subscribe(() => {
setTimeout(() => {
// to child component
mapRouteInfo.eca = this.eca;
}, 500);
});
}
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior: Currently, I can't seem to find a way to subscribe to (
@Output
) event emitters from the component passed into the window modal when it is being created, I can only pass in data through context but can't seem to find a way to subscribe to data passed from the wrapped component.Expected behavior:
Steps to reproduce: As described in the expected behaviour above
Related code:
Other information:
npm, node, OS, Browser
Angular, Nebular