8000 NgClass is not evaluating array expressions · Issue #15905 · angular/angular.js · GitHub
[go: up one dir, main page]

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 is not evaluating array expressions #15905
Closed
@GiDW

Description

@GiDW

I'm submitting a ...

  • bug report
  • feature request
  • other (Please do not submit support requests here (see above))

Current behavior:

When using ng-class with an expression that evaluates to an array, the classes are not added.

Expected / new behavior:

The classes defined in the objects of the array should be applied to the DOM element when their expression is true.
Basically the third way in which the ng-class directive operates as explained in the docs.

Minimal reproduction of the problem with instructions:

Toggle 1 should change the background color of both boxes.
This works in Angular 1.6.3 but it stops working with Angular 1.6.4.
By changing the angular version number you can see the different behavior.
http://plnkr.co/edit/GARSFyXFLKA00oa4Julz

Angular version: 1.6.4

Browser: [all]

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0