ngxd icon indicating copy to clipboard operation
ngxd copied to clipboard

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

Open st-clair-clarke opened this issue 4 years ago • 3 comments

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.

st-clair-clarke avatar Nov 01 '19 04:11 st-clair-clarke

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>

thekiba avatar Nov 01 '19 07:11 thekiba

Thank you.

st-clair-clarke avatar Nov 01 '19 12:11 st-clair-clarke

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

jpike88 avatar Mar 07 '21 16:03 jpike88