星云菜单父活动类不起作用

Rak*_*ngh 6 angular angular6 angular6-json-schema-form nebular

我正在将 Nebular 与 Angular 6 一起使用,在单击菜单项时遇到问题,未添加父菜单项上的活动类。但是如果您看到http://akveo.com/ngx-admin,当您单击“UI-features”内的“”buttons”时,它们的 UI-features 会突出显示。

下面是我的 JSON 文件:

[
    {
        "title": "Dashboards",
        "icon": "font_icons8 icons8-statistics",
        "link": "/dashboard",
        "home": true
    },
    {
        "title": "UI Features",
        "icon": "font_icons8 icons8-data-configuration",
        "link": "/ui-features",
        "children": [
            {
                "title": "Typography",
                "link": "/ui-features/typography"
            },
            {
                "title": "Grid",
                "link": "/ui-features/grid"
            }
        ]
    },
]
Run Code Online (Sandbox Code Playgroud)

请帮助我解决这个问题。

小智 0

它有效,你可以尝试这个代码。

{
title: "Dashboard",
icon: "people-outline",
link: "/dashboard"
 },
 {
title: "Calendar",
icon: "pie-chart-outline",
children: [
  {
    title: "Day-cell",
    link: "/day-cell"

  },

]
 },
Run Code Online (Sandbox Code Playgroud)