-
Notifications
You must be signed in to change notification settings - Fork 41
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
Runtime loading of element based on user action #64
Comments
Hi @hardikpatel043, I'm just trying to through some knowledge that I have experienced with. Below is an approach you can evaluate
To my understanding this lib is meant to allow you to define the placeholder where the script file can be loaded on demand. Keeping this additional logic inside of the lib makes it clumsy too. NOTE: This input is purely based on my understanding of the problem |
Hi @hardikpatel043 ! Would this work ?
Cheers! |
I came across a similar issue, though in my case the possible elements are not known at compile time, so the workaround proposed by @tomastrajan wouldn't work for me. What seems to work is wrapping the
This seems to force re-creation of the inner component whenever the The problem seems to be that the |
I have an angular app which has two apps and one shell app.
Micro app : home and aboutus
Shell app : cz-app
In shell app I have one page (contactus) where I have a drop-down with two values (home and aboutus). Now I want to load an element just below drop-down based on selection value.
I tried to use axLazyElementDynamic and updated configuration on valueChange, but it didn't work.
I tried manually triggering change detection by "this.cdr.detectChanges()". It didn't help me.
Here is my github repo.
Could anyone please check given repo.
Note - both microapps are working fine on separate route.
The text was updated successfully, but these errors were encountered: