Provide dynamic content for aside navigation items #9101
Answered
by
waterplea
tsironis13
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
waterplea
Sep 19, 2024
Replies: 1 comment
-
Problem is |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
waterplea
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Problem is
tuiAsideItem
needs to injecttuiNavigationAside
to be able to watch for it expansion status and it cannot do that whentuiNavigationAside
is in a wrapper, this is how DI in Angular works. You can try making your wrapper extendtuiNavigationAside
and provide it like that:https://stackblitz.com/edit/angular-kdxny3
Note that
tuiNavigationAside
also provides config for buttons and dropdowns which would also need to be copy-pasted, so this is a bit shaky since those might change — it's an internal implementation.