JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Tabs › Add angular component to tab › Reply To: Add angular component to tab
February 13, 2023 at 5:58 pm
#104388
dilbert
Participant
With that method I need the ViewContainerRef for the containing component which I can easily do by adding a custom anchor to smart-tab-item to expose it. However, we a new tab is added via the built in add button, the new smart-tab-item doesn’t have this tag. It also doesn’t get added to a @ViewChildren QueryList. (i.e. @ViewChildren(TabItemComponent) items: QueryList<TabItemComponent>). The items list is never updated with any smart-tab-items created using the add tab button.
Is there an easy way to get ViewContainerRef for the dynamically added smart items?