Skip to content

Commit

Permalink
feat(menu): add an option to set skipLocationChange (#1043)
Browse files Browse the repository at this point in the history
Closes #1028
  • Loading branch information
maihannijat authored and nnixaa committed Dec 14, 2018
1 parent 88160a5 commit 3d3ee03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[routerLink]="menuItem.link"
[queryParams]="menuItem.queryParams"
[fragment]="menuItem.fragment"
[skipLocationChange]="menuItem.skipLocationChange"
[attr.target]="menuItem.target"
[attr.title]="menuItem.title"
[class.active]="menuItem.selected"
Expand Down
4 changes: 4 additions & 0 deletions src/framework/theme/components/menu/menu.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,10 @@ export class NbMenuItem {
* @type {boolean}
*/
group?: boolean;
/** Whether the item skipLocationChange is true or false
*@type {boolean}
*/
skipLocationChange?: boolean;
/** Map of query parameters
*@type {Params}
*/
Expand Down

0 comments on commit 3d3ee03

Please sign in to comment.