Closed anhallbe closed 2 months ago
Update: I can see similar issues with IdsAppMenu, so maybe the root cause is in the Accordion or some other shared component? Can be reproduced in the same repo, but on the "app-menu" branch.
https://github.com/anhallbe/repro-ids-module-nav/blob/app-menu/src/app/app.component.html
https://github.com/infor-design/enterprise-wc/assets/4991954/31a4b185-9508-4c8d-840f-77acbe3c10cf
Describe the bug There are a couple of issues with the IdsModuleNav related to dynamic content:
This is currently stopping us from using the ModuleNav, as the menu items are either dynamically loaded at runtime (based on a HTTP request), or dynamically rendered using Angular conditional syntax (
@if
,*ngIf
@for
etc). Both of these cause the issue.Update: Similar issues with IdsAppMenu. See https://github.com/infor-design/enterprise-wc/issues/2517#issuecomment-2208710352
To Reproduce
Steps to reproduce the behavior:
npm install
ng serve
and open in the browser, or start the VSCode debugger.Expected behavior It should be possible to add menu items after the Module Nav has been created.
Version
Screenshots
https://github.com/infor-design/enterprise-wc/assets/4991954/b2325b20-a58e-47ac-84e2-f0fb82cb30bb
Platform
Additional context Code to reproduce:
app.component.html:
app.component.ts: