Hello, i have bug when i want to show dynamic nav menu item
I have an api, it sends a response like this:
{
“title”: “Dashboard”,
“icon”: “dashboard”,
“path”: “/admin/dashboard”,
“parent_id”: null,
“sort_order”: 1,
“is_active”: true
}
{
“title”: “Sản phẩm”,
“icon”: “shopping-bag”,
“path”: “/admin/products”,
“parent_id”: null,
“sort_order”: 2,
“is_active”: true
}
{
“title”: “Thêm sản phẩm”,
“icon”: “plus-circle”,
“path”: “/admin/products/add”,
“parent_id”: 2,
“sort_order”: 1,
“is_active”: true
}
{
“title”: “Quản lý kho”,
“icon”: “warehouse”,
“path”: “/admin/products/stock”,
“parent_id”: 2,
“sort_order”: 2,
“is_active”: true
}
how can i use dynamic value to show all item of menu, include children and parent?

