bottom sheet lazy init #9574
-
is there any way to load init component inside of bottom sheet on open? |
Beta Was this translation helpful? Give feedback.
Answered by
waterplea
Oct 23, 2024
Replies: 1 comment 5 replies
-
I'm not sure what you mean, content does load it only on open. What do you mean by init component? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looking at your code from other question, I see you use content projection like this:
That's your problem. Content in Angular is initiated immediately always and is just kept detached from DOM until it's projected. If you want it to be lazy, you would have to switch to templates. There's nothing we can do from our side.