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.

ngClass fails to update class when initial value is false #10912

Open
@ewinslow

Description

@ewinslow

Minimal repro case:

http://plnkr.co/edit/JCHWQoBOGjmlpUANoP9Y?p=preview

We'd like to set a class on an element by default, and then have it removed by Angular on bootstrap (assuming the expression for that particular class evaluates to false).

Our workaround for now is to just reverse the behavior so that you need to add a class to get the desired effect. Angular updates class correctly when the initial value is true.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions