ngxd
ngxd copied to clipboard
Event ngxComponentOutletActivate is not emitted by any applicable directive nor by using ng-container element
Hi, When attempting to use the event (ngxComponentOutletActivate), I am getting the an error as displayed by the screen capture below:
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.
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>
Thank you.
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