feat(material/core): introduce custom token for controlling animations#30749
Merged
crisbeto merged 1 commit intoangular:mainfrom Mar 30, 2025
Merged
feat(material/core): introduce custom token for controlling animations#30749crisbeto merged 1 commit intoangular:mainfrom
crisbeto merged 1 commit intoangular:mainfrom
Conversation
Even though Material is currently decoupled from the animations module, users still need to import the `NoopAnimationsModule` to disable them. These changes introduce a custom token so that users don't have to depend on the animations-related packages at all.
crisbeto
commented
Mar 30, 2025
| } | ||
|
|
||
| /** Injection token used to configure the animations in Angular Material. */ | ||
| export const MATERIAL_ANIMATIONS = new InjectionToken<AnimationsConfig>('MATERIAL_ANIMATIONS'); |
Member
Author
There was a problem hiding this comment.
Technically this could be a boolean, but I went with the object literal so we can add more options later if necessary.
andrewseguin
approved these changes
Mar 30, 2025
szoboszlaypali
pushed a commit
to szoboszlaypali/components
that referenced
this pull request
Apr 1, 2025
angular#30749) Even though Material is currently decoupled from the animations module, users still need to import the `NoopAnimationsModule` to disable them. These changes introduce a custom token so that users don't have to depend on the animations-related packages at all.
mistrykaran91
pushed a commit
to mistrykaran91/components
that referenced
this pull request
Apr 7, 2025
angular#30749) Even though Material is currently decoupled from the animations module, users still need to import the `NoopAnimationsModule` to disable them. These changes introduce a custom token so that users don't have to depend on the animations-related packages at all.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Even though Material is currently decoupled from the animations module, users still need to import the
NoopAnimationsModuleto disable them.These changes introduce a custom token so that users don't have to depend on the animations-related packages at all.