Skip to content

Provide dynamic content for aside navigation items #9101

Answered by waterplea
tsironis13 asked this question in Q&A
Discussion options

You must be logged in to vote

Problem is tuiAsideItem needs to inject tuiNavigationAside to be able to watch for it expansion status and it cannot do that when tuiNavigationAside is in a wrapper, this is how DI in Angular works. You can try making your wrapper extend tuiNavigationAside 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by waterplea
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