Skip to content
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

$go('.childState') triggers 'Maximum call stack size exceeded' for version v0.2.10-dev-2014-08-07 #1288

Closed
Live2Learn opened this issue Aug 25, 2014 · 4 comments

Comments

@Live2Learn
Copy link

Hi team,
First great thanks to this amazing library.

I've been using the master version of angular-ui. @Version v0.2.10-dev-2014-08-07. However, it has kind of breaking changes. Here is the situation.

I've reached to a state which has three children state called s1, s2 and s3 respectively. In the controller of parent state, I want to go to the first child state, which means I want to s1 be the default state. I use such code $state.go('.s1'). And in the released version @Version v0.2.10, it works fine. However after using this development version, it failed with Maximum call stack... error on low configuration machine. It seems there is an infinite loop using up the stack space.

I have such html for my parent controller.

<div class="col-md-9">
    <ul class="nav nav-tabs">
      <li ng-class="{active: $state.includes('**.s1.**')}">
        <a ui-sref=".s1">S1</a>
      </li>
      <li ng-class="{active: $state.includes('**.s2.**')}">
        <a ui-sref=".s2">S2</a>
      </li>
      <li ng-class="{active: $state.includes('**.s3.**')}">
        <a ui-sref=".s3">S3</a>
      </li>
    </ul>
    <div ui-view></div>
  </div>

Thanks,
-J

@christopherthielen
Copy link
Contributor

Closing as duplicate #1194 Thanks for the bug report.

@Live2Learn
Copy link
Author

@christopherthielen Thank for quick fixing. Then how do I apply this fixing? Which branch?

@christopherthielen
Copy link
Contributor

0.2.11 will be released soon, probably tomorrow @Live2Learn

@Live2Learn
Copy link
Author

Thanks a lot!

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

No branches or pull requests

2 participants