Skip to content

Getting started guide unclear about dependency on @angular/animations #12365

Closed
@fetis

Description

@fetis

Bug, feature request, or proposal:

Bug

What is the expected behavior?

https://material.angular.io/guide/getting-started#step-2-animations
Getting started says that

If you don't want to add another dependency to your project, you can use the NoopAnimationsModule

So, I expect to don't install @angular/animations when I import this module

What is the current behavior?

Actually, @angular/platform-browser/animations uses the @angular/animations internally and it's not possible to compile a project without it.

Hence, the question what's the real difference between this to options?

At the moment it's not possible to use Material without animations module
Here's the stackblitz that illustrate the problem https://stackblitz.com/edit/angular-material-animations-problem

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular Material 6.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workarounddocsThis issue is related to documentationhelp wantedThe team would appreciate a PR from the community to address this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions