Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

UIRoute MenuService value syntax #900

Closed
bobbyziom opened this issue Sep 9, 2015 · 4 comments
Closed

UIRoute MenuService value syntax #900

bobbyziom opened this issue Sep 9, 2015 · 4 comments
Assignees

Comments

@bobbyziom
Copy link

Hello

In the article example the menu will remain active if a user is creating an article. It uses

'/article(/create)?' 

as the argument for making the menu item active when both in /article and /article/create path.
I'm making a dashboard for different devices, and I want to have my menu item active for either of them. My path is /dash/:deviceId (deviceId is mongoDB reference id).

How can i make the menu item for every path with /dash, no matter what will come after? And could anyone give some common syntax guidelines for the UIRoute argument in MenuService - I can't find anything else than the article example which doesn't cover my current issue.

Thanks alot!

@ilanbiala
Copy link
Member

@bobbyziom please use StackOverflow or another forum that is more appropriate for questions as GitHub is mainly for bug reports and feature requests. If you have not figured it out after asking on other sites, then we can try to work out a solution with the progress you have made.

@bobbyziom
Copy link
Author

Could be an idea to enhance the documentation, but okay, I'll try. Thanks anyways.

@codydaig
Copy link
Member

codydaig commented Sep 9, 2015

@bobbyziom Hit me up on Gitter! I wouldn't mind helping and figuring this out with ya.

@rhutchison
Copy link
Contributor

@bobbyziom, not sure if this is what you're looking for, but have you looked at ui-sref-active?

if not, maybe what you need is something custom - an expression with ngClass.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants