Skip to content

Navigate to route on AppSideBarNav parent menu click [in Angular] #123

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
natasha-madhu opened this issue Sep 28, 2021 · 1 comment
Closed

Comments

@natasha-madhu
Copy link

Hello! This issue is identical to coreui/coreui-react#98 but in Angular. When the user clicks on a parent menu item, it doesn’t navigate to the path specified in _nav.ts, it just toggles the dropdown. Is there a way, in Angular, to override the default behavior to allow simultaneous toggle and navigation when the user clicks? Thank you!!

@xidedix
Copy link
Member

xidedix commented Dec 2, 2021

Hi,

You can use EventManager at DefaultLayoutComponent level, and listen to user click on sidebar parent menu (aka nav-dropdown-toggle). Should work as a workaround at least.

@xidedix xidedix closed this as completed Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants