-
Notifications
You must be signed in to change notification settings - Fork 26.6k
Closed
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: animationsIssues related to `animate.enter` and `animate.leave`Issues related to `animate.enter` and `animate.leave`state: has PR
Milestone
Description
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
New animations API supports this
<div animate.leave="css-class1 css-class2"></div>
and also this
<div [animate.leave]="['css-class1', 'css-class2']"></div>
but not this
<div [animate.leave]="'css-class1 css-class2'"></div>
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Failed to execute 'add' on 'DOMTokenList': The token provided ('css-class1 css-class2') contains HTML space characters, which are not valid in tokens.
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 20.2.0
Node: 22.16.0
Package Manager: npm 10.9.2
OS: Windows 11
Angular: 20.2.0
Anything else?
No response
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimecore: animationsIssues related to `animate.enter` and `animate.leave`Issues related to `animate.enter` and `animate.leave`state: has PR