Skip to content

Support array state parameters #373

@jyboudreau

Description

@jyboudreau

Angular $location has support for setting/getting query parameters that are repeated and treat them as arrays. It would be great to have this supported in ui-router.

Some example usage:

var arrayState = {
    // ...
    url: "/index?array"  // or via params
}

// Activating the state
$state.go(arrayState, {array: ["1", "2", "3"]});

// ... would change the location to /index?array=1&array=2&array=3

$stateParams.array would also be constructed from the location into an array of course.

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