Skip to content

bottom sheet lazy init #9574

Closed Answered by waterplea
vytautas-pranskunas- asked this question in Q&A
Discussion options

You must be logged in to vote

Looking at your code from other question, I see you use content projection like this:

<ng-template [(tuiSheetDialog)]="isOpened()">
  ...
  <ng-content select="[footer]"/>
</ng-template>

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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@waterplea
Comment options

@vytautas-pranskunas-
Comment options

@waterplea
Comment options

@waterplea
Comment options

Answer selected by vytautas-pranskunas-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants