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 array syntax behavior not according to documentation #8578

Closed
@Almar

Description

@Almar

Is this a bug or should the documentation be updated?

Documentation:

If the expression evaluates to an array, each element of the array should be a string that is one or more space-delimited class names.

However if an array element has multiple, space-delimited, classes only the last one appears to be applied. This behavior can be seen in the example in the documentation for ngClass.

Moreover; the example code for ngClass also suggest that an array element can only have one class - the placeholder text is "Type: bold, strike or red".

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions