Skip to content

pfVerticalNavigation integration with angular-ui-router #342

@lorthirk

Description

@lorthirk

Hello,

I'm using Patternfly in an application I started to develop, and I noticed that pfVerticalNavigation uses the location service to follow the href attribute of the items.

I had a brief look at pfVerticalNavigation and it should be quite easy to modify the directive so that an item accepts a uiSref parameter and, if populated, it makes the directive use the $state service from angular-ui-router to perform the navigation. Additional tests could verify that $state is injected properly in the directive (I would not declare a depencency from Patternfly to the ui.router module since this should be an optional feature) if uiSref is being used, and that only one between the href and the uiSref parameters are populated for a given item.

What do you think? Would you be interested in such contribution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions