-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Lazy loading modules that use pTemplate do not work without importing SharedModule #9782
Comments
Seems to be solved in v11.3.0. |
Changed my blitz to use version 11.3.0 and the issue is resolved. Thanks. |
The same issue still exists in p-menubar. If I just use the p-menubar component with start and end templates, the templates are not rendered, only the menu is rendered. I guess the menubar module needs the same fix. |
I confirm the issue still exists in |
I did some searching and it looks like be71665 though was for a different issue, maybe it will work as a solution for this one as well? |
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
https://stackblitz.com/edit/github-fux54h?file=src/app/app.component.html
Current behavior
When lazy loading modules that use PrimeTemplate then they do not work unless they are importing SharedModule, or another module that exported SharedModule.
I've noticed this behaviour in MessageModule and OverlayPanel, but suspect any module that is using pTemplate will need to export ShareModule to work independently when lazy loading.
#9033
#9023
It was fixed for one module here:
#8031
Expected behavior
Modules should be self contained.
Minimal reproduction of the problem with instructions
see plunker
Please tell us about your environment:
As it's reproducible in the plunker skipping the environment settings descriptions, but we are on latest prime, angular 11 etc.
The text was updated successfully, but these errors were encountered: