angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.54k stars 3k forks source link

TypeError: Cannot read property '$$animLeave' of undefined #3516

Closed hani647 closed 4 years ago

hani647 commented 7 years ago

I explored a lot but can't find a way out of it. I've been using angular 1.6.4 and ui-router 1.0.0-beta.3. Please help me how to make a work around it. Moreover I can see 2 ui-views when I call state my html looks like

    <div ui-view>

    </div >

but then I can see 2 views when calling state i.e.

    <div ui-view>

    </div >
    <div ui-view>

    </div >

Any help would be really appreciated. Thanks

niamleeson commented 7 years ago

I'm running into the same issue. When the app renders, there are two ui-view's.

orsi commented 6 years ago

I encountered this problem when transitioning from one sibling state to another. My setup is a parent 'admin' state, with many sub-states defined as 'admin.workCenters', 'admin.users', etc. Upon loading the first sub-state, it would load properly, however, transitioning to another sibling would rip out all the html up to the parent's parent ui-view and never re-insert other siblings.

The problem fixed itself when I changed the parent ui-view template from <ui-view></ui-view> to <div ui-view></div>. Not sure if this would help yourself, but maybe it would shed light on the issue.

vladlep commented 6 years ago

+1

ms-dosx86 commented 5 years ago

+1

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues may be reopened.

Thank you for your contributions.