Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
st-clair-clarke opened this issue Nov 1, 2019 · 3 comments
Labels
need doc That issue should be shown in documentation resolved That issue was resolved

Comments

@st-clair-clarke
Copy link

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
Copy link
Contributor

thekiba commented Nov 1, 2019

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
Copy link
Author

Thank you.

@thekiba thekiba closed this as completed Dec 17, 2019
@thekiba thekiba added need doc That issue should be shown in documentation resolved That issue was resolved labels Jul 17, 2020
@thekiba thekiba reopened this Jul 17, 2020
@jpike88
Copy link

jpike88 commented Mar 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need doc That issue should be shown in documentation resolved That issue was resolved
Projects
None yet
Development

No branches or pull requests

3 participants