Closed baubie closed 9 years ago
+1
This is happening with a Jun 2nd dev version as well. In my case, I have two states app.listing
and app.listing.feature
. With the release version, it has no issues changing the state using $state.go
to load the child state feature
in the app.listing
controller.
With the master branch, my app gets into a loop trying to load app.listing
within app.listing
as revealed by a debug session in $state.transitionTo
function, until the call stack grows far beyond.
Using the $location
service to access the app.feature
works for me.
@nateabele doesn't this require a little more angular-ui love? Seems pretty critical for those of us who are trying out the edge version, tempted by all the new features ;)
This has turned out to be a non-issue in my case. It was happening in a state-hierarchy where there are a default substate with empty url. By removing that state, my app behaves fine and $state.go
no longer poses any issues.
Can you post a plnkr example please?
Actually closing this: https://gist.github.com/eddiemonge/f6a58169c2846731a1eb
Using master pulled on May 25th, 2014, I wanted to use the new optional parameters feature of routes, so I created a route and when I load the page fresh, it works fine, but if I transition to it by clicking on a link on my site, I get a maximum call stack size exceeded.
Everything works fine if I simply remove the {first_reservable_create} optional parameter below.
Here's where I define my route:
The call stack size exceeded error happens in the code below (this is from a standard grunt build of ui.router):