-
Notifications
You must be signed in to change notification settings - Fork 30
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
Services not being injected when annotated with @MultiWindowService #41
Comments
Can you out your tsconfig here, too? I assume you're not using ivy, which causes this to break. |
Is Ivy a package from npm? If so, no we are not using it. Here is my tsconfig:
And my tsconfig.app
Thanks again for your time. |
As I suspected, this happens when not using angular ivy, I'll try to fix it for both variants. |
@martin31821 Has there been any update? I am also using non-Ivy AOT compilation and I am facing a similar issue. My multi-window services are being injected but service properties are all undefined. |
@Vargrats Did you come up with any solution? |
Fixed in 0.0.30 |
@martin31821 I am still facing the issue after updating to 0.0.30. Everything works just fine in the development build. But as soon as you use production build the injected services have their properties undefined. |
Hello,
I'm trying to integrate golden layout in a browser application using Angular 8.2 and it seems that my services are created without their injected components.
In the example below, the injected component (httpClient, calendarService and dutyService are all undefined when they are used in the service's functions.
If I remove the @MultiWindowService, everything works as intended however when I pop-out a component, it no longer share the services with the main window (as intended)
This is one of my service:
The layout is defined in one of my components like this:
There are no errors when I run ng build.
Here are the relevant lines in my package.json:
Can anyone help?
Thanks in advance!
The text was updated successfully, but these errors were encountered: