-
Notifications
You must be signed in to change notification settings - Fork 32
Description
I have 2 dynamic components with events.
First dymamic component have few events:
Output('action1') action1= new EventEmitter<any>();
Output('action2') action2= new EventEmitter<any>();
Output('action3') action3= new EventEmitter<any>();
Also i have host component for this dynamic components. All components registered in declarations/entry components
HTML of host:
<ng-container *ngxComponentOutlet="component; context: {data: data}">
events in host, like in first dynamic component:
Output('action1') action1= new EventEmitter<any>();
Output('action2') action2= new EventEmitter<any>();
Output('action3') action3= new EventEmitter<any>();
and events doesnt fires on in host wrapper component:
<journal-host [component]="getDisplayedComponent()"
[data]="data"
(action1)="onAction1($event)"
(action3)="onAction2($event)"
(action3)="onAction3($event)"></journal-host>
Why I cant reach those onAction1/2/3() functions in my wrapper? IDE autocomplete tells me that I have this events, but they doesnt fire. Help please
UPD:
seems like it works when event name isn't specified (Output('action2') action2 = ... => Output() action2 = ....)