ng-admin
ng-admin copied to clipboard
Fix Child Menu Highlight
With previous code the parent menu gets highlighted only when the first child is active and not when any of its children are active. This change fixes that.
Actually I am revising my idea on this. Currently active is used to checked on the parent, if the current url include the given path. In my use case, all of the child menu item have a different path with no common denominator. So using menu.isActive(path) would only work on a given one... fix for me was to use childmenu.isActive(path), but I suppose this could be done in a template, depending on the need ?