Skip to content

ui-sref-active does not work with state that have an array as a parameter #2696

Closed
@tommysanterre

Description

@tommysanterre

Given a state with param of type array

$stateProvider.state('stateA', {
    params: {
      paramA: {
        value: [],
        array: true,
        type: 'int',
       },
    },

The active class is not added on the html element when we navigate to the state

<a ui-sref-active="active" ui-sref="stateA({paramA: [1,2]})">Link</a>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions