Skip to content

Controller initialised after a $state.go with {notify: false} #2108

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
caillou opened this issue Jul 20, 2015 · 6 comments
Closed

Controller initialised after a $state.go with {notify: false} #2108

caillou opened this issue Jul 20, 2015 · 6 comments

Comments

@caillou
Copy link

caillou commented Jul 20, 2015

The Bug

When a $state.go is called with {notify: false} as follows, a bug occurred:

$state.co('foo', {}, {notify: false})

On the next state change, the current controller will be initialised a second time.

Plunker Link

Follow the steps to reproduce on Plunker:

http://plnkr.co/edit/wMiVOb?p=preview

@eddiemonge eddiemonge added the bug label Jul 22, 2015
@eddiemonge
Copy link
Contributor

It does indeed look like a bug.

@PhiLhoSoft
Copy link

See #2087, looks similar. Very annoying when a controller loads data on initialization.

@RickWalker
Copy link

This is the same issue as #1673 which is apparently fixed by PR #2003, so hopefully it should be easy enough to solve.

@eddiemonge
Copy link
Contributor

similar to #1673 but slightly different I think

@jessezhang91
Copy link

It's a little different from #1673 but should still be fixed by PR #2003. The actual issue I was having is described in this bug.

@eddiemonge
Copy link
Contributor

marking as duplicate of #2087

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

5 participants