Indigosoft / ngxd

✨🦊 NgComponentOutlet + Data-Binding + Full Lifecycle = NgxComponentOutlet for Angular 7, 8, 9, 10, 11, 12, 13, 14, 15, 16+
MIT License
321 stars 29 forks source link

Event ngxComponentOutletActivate is not emitted by any applicable directive nor by using ng-container element #25

Open st-clair-clarke opened 5 years ago

st-clair-clarke commented 5 years ago

Hi, When attempting to use the event (ngxComponentOutletActivate), I am getting the an error as displayed by the screen capture below:

image

I am suing "@angular/cli": "^9.0.0-rc.0" and "@angular/material": "^9.0.0-rc.0".

I would appreciate your help as I need to use the event.

thekiba commented 5 years ago

Hello! Angular does not currently support outputs for asterisk syntax. Therefore, you can write differently, see the example below:

<ng-container
  [ngxComponentOutlet]="component"
  (ngxComponentOutletActivate)="onActivate($event)">
</ng-container>
st-clair-clarke commented 5 years ago

Thank you.

jpike88 commented 3 years ago

just had to revert to square bracket syntax as need to call a method on child components after creation in order to help the parent fully populate the UI... fyi