Skip to content

1.0 uiView inside conditional ngInclude causes "Cannot read property '$$animLeave' of undefined" #3004

Closed
@shawnlan

Description

@shawnlan

Here is the test case: http://plnkr.co/edit/EuWGIKcyXCTY1vHiQXMj?p=preview

The error happens when:

  1. uiView inside a conditional ngInclude
  2. Switch ngInclude from On to Off and then back to On
  3. Go to a different root state

Any workaround before a fix?

Here is what I'm trying to do:

A not-logged-in user can go to any url, but he/she will see a login form. Once he/she logs in, he'll see that url's corresponded state view.

Should I go with a different approach? lazyLoad/future states that register after a user logs in? I'm not quite sure how that works.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions