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.

$animator and ngShow: initial state #2309

Closed
@olostan

Description

@olostan

I am using ngShow directive to show some elements on the page, that are initially hidden. As 1.1.4 added animations, I've decided to try to add them to page and used example from documentations.

But as result when initial value is 'false' and document loaded, I see that elements, that should be hidden by ngShow are visible and classes "..-hide-setup", "...-hide-start" are been applied.

This brings to undesired behavior: hidden elements start hiding themselves instead of been hidden initially.

Here is Plunker that illustrate that situation: http://plnkr.co/edit/67Q96KmExV78Kd84tq4g

Is this 'by design' or should be fixed? Now I am checking ngShowDirective and $animator sources to find a solution how to inform $animator that it should skip animation when it is initial value...

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