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 broken in Angular 1.0.3? #1637

Closed
@provegard

Description

@provegard

I noticed some odd ngClass behavior when upgrading from Angular 1.0.1 to 1.0.3. Going back to 1.0.2 fixed the problem. The following fiddle illustrates the problem:

http://jsfiddle.net/provegard/uwwgy/14/

Since a is false initially, the text should get the "foo" class and be red. The watch kicks in immediately and changes a to true, which should remove the "foo" class from the text and thus change it back to black. This is what happens in Angular 1.0.2, but not in 1.0.3.

(In my real app, I have two Twitter Bootstrap tabs that become initially active at the same time due to this bug.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions