Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Previous html appended by ng-view wasn't removed if animation last for a while #5162

@leftstick

Description

@leftstick

I have several partials in my project, and i used ng-view to switch between those views.

The previous partial html should be removed after a new partial is added, right?

A weird thing i found during development, once i have animation like ng-enter, ng-leave..., they cannot last like 410ms or 510ms(for example: transition-duration cannot be a number like 410ms/510ms). Otherwise, the previous html wouldn't be removed.

I am using the latest stable version: 1.2.2, and only used CSS-defined Animations.

This was not only happened with ng-view, but also other features. Like i have a service which set a $timeout for removing data when it's timeout. The DOM should do the corresponding change as the data. It worked perfectly without animation or animation last not 410ms/510ms. But if i have animation, and it last up to 410ms/510ms, the DOM would never modified.

I haven't do too much test for other values, but pretty sure 410 and 510 doesn't work. It is very very strange.

Am i missed some parts? Or broke something that i don't know?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions