Skip to content

State reloaded on exit after change URL with notify:false, reload:false #2139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
alexcrown opened this issue Jul 29, 2015 · 3 comments
Closed

Comments

@alexcrown
Copy link

Problem: I use recepie from #64 for change URL without state change ({notify:false, reload:false}. When I realy change state to another, previous state with changed url reload it`s controller.

Steps to reproduce:

  1. Open Plunker
  2. Click Route1. url = #/route1/1 , console output = route1
  3. Click "Change URL with test=hello". url=#/route1/1?test=hello
  4. Click "Change url with test=world". url=#/route1/1?test=world
  5. Click Route 2. url = #/route2/2, console output = route1 and route2.

Why route1 reload it's controller on step 5 and how prevent it?

@eddiemonge
Copy link
Contributor

duplicate of #1673

@btm1
Copy link

btm1 commented Jul 29, 2015

@eddiemonge it is a dup of #1673 but why is that issue closed it's not fixed yet... even if you hack $state.go to achieve changing the params it messed up once you try to nav to a new state... it will reload the same controller

@eddiemonge
Copy link
Contributor

Its not closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants