Skip to content

passing params with ui-sref with a "urlless" state not passing params #708

@samccone

Description

@samccone

Given markup

   a(ui-sref="foo({id: 123})") {{m.name.value}}

a state provider with

  $stateProvider.state('foo', {
    template: templates.foo,
    controller: 'foo'
  });

and a controller with

zap.controller('foo', function($scope, $state, $stateParams) {
  console.log($stateParams); // this is {}
});

State Params is an empty {} where I would expect id to be 123

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