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

infinite loop when using ng-if to include or not include ui-view #899

Closed
robhicks opened this issue Feb 18, 2014 · 1 comment
Closed

infinite loop when using ng-if to include or not include ui-view #899

robhicks opened this issue Feb 18, 2014 · 1 comment

Comments

@robhicks
Copy link

Here's a pretty common occurrence that used to work. I have two ui-view's in a file. Which one gets used depends on the role the user has. This used to work (before i upgraded from 0.2.7 to 0.2.8). Now the browser becomes unresponsive and crashes.

<div id="main_container" reset-timer class="clearfix" ng-cloak>
    <div class="col-lg-12 col-md-12 col-sm-12" data-ng-if="us.user.borrower">
        <div ui-view></div>
    </div>
    <span  data-ng-if="us.user.system">
        <div class="col-lg-2 col-md-2 col-sm-3">
            <div class="list-group">
                <a class="list-group-item" ui-sref="app.dashboard">
                    <span class="icon-dashboard"></span>
                    Dashboard
                </a>
                <!-- other list items -->
            </div>
        </div>
        <div class="col-lg-10 col-md-10 col-sm-9">
            <div ui-view></div>
        </div>
    </span>
</div>
@timkindberg
Copy link
Contributor

Duplicate #552

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