Skip to content

How to update params of state without reload of controller? #1758

Closed
@hyzhak

Description

@hyzhak

http://plnkr.co/edit/i32gBWblr3JaG2aNcnzg?p=preview
after you have something like:

$state.go('stateA', {param: newvalue}, notify: false);

any other command like:

$state.go('stateB');

or ever

$state.go('stateA.substate');

reload controller.

Steps to reproduce:

  1. push 'Reload state';
  2. push 'go to state.index1';
  3. Controller reloads will update to 1;
  4. push 'Realod state';
  5. and so on...

ReloadOnSearch

reloadOnSearch: false

Doesn't work because doesn't update params of state and if we go to 'state.index1' we will lost all params from of 'state'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions