Skip to content

Commit 320de4e

Browse files
refactor(core): deprecate animations field on component interface (#62895)
This deprecates the animations field on the component decorator in favor of animate.enter and leave. DEPRECATED: @angular/animations PR Close #62895
1 parent 9d05a8a commit 320de4e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

goldens/public-api/core/index.api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ export type CompilerOptions = {
266266

267267
// @public
268268
export interface Component extends Directive {
269+
// @deprecated
269270
animations?: any[];
270271
changeDetection?: ChangeDetectionStrategy;
271272
encapsulation?: ViewEncapsulation;

packages/core/src/metadata/directives.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -604,6 +604,7 @@ export interface Component extends Directive {
604604
* [`state()`](api/animations/state) and `transition()` definitions.
605605
* See the [Animations guide](guide/animations) and animations API documentation.
606606
*
607+
* @deprecated 20.2 Use `animate.enter` or `animate.leave` instead. Intent to remove in v23
607608
*/
608609
animations?: any[];
609610

0 commit comments

Comments
 (0)