akveo / akveo/ngx-admin

submenu pathMatch doesn't work at all

オープン
#1,845 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement needs docs needs info
主要言語
TypeScript
スター
25.7k
フォーク
7.9k
PR マージ指標
30日以内にマージされた PR はありません

説明

### Issue type

**I'm submitting a ...** (check one with "x")

* [ x] bug report
* [ ] feature request
* [ ] question about the decisions made in the repository

### Issue description

**Current behavior:**

I want to highlight the pathMatch 'menu' when user redirect to the child page, but it doesn't work

**Expected behavior:**

I want to highlight the pathMatch 'menu' when user redirect to the child page
**Steps to reproduce:**

Here is the menu setting snap:
{
title: 'Order Manage',
icon: 'nb-grid-b',
children: [
{
title: 'Order List',
link: '/pages/order/order-list',
},
{
title: 'Order Detail',
link: '/pages/order/order-detail',
pathMatch: 'order-list',
hidden: true
}
],
},

refer to the above code, the menu 'order-detail' is hidden as expected, but when I redirect to the path 'http://localhost:4200/#/pages/order/order-detail', the menu 'order-list' doesn't be highlighted as expected, please advise. Thanks in advance

![17](https://user-images.githubusercontent.com/11940800/45411989-3d0fb280-b6a8-11e8-8439-b05dae5590ab.png)

**Related code:**

```
insert short code snippets here
```

### Other information:

**npm, node, OS, Browser**
```

```

**Angular, Nebular**
```

```

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。