Skip to content

Add animation support to ng new command #5785

Closed
@dave11mj

Description

@dave11mj

Bug Report or Feature Request (mark with an x)

  • bug report -> please search issues before submitting
  • feature request

Versions.

Not relevant

Repro steps.

  1. ng new test-animation
  2. Open the app.component.ts
  3. Add import { trigger, state, style, animate, transition } from '@angular/animations';
  4. ng serve

The log given by the failure.

ERROR in /PATH/test-animation/src/app/app.component.ts (2,60): Cannot find module '@angular/animations'.

Desired functionality.

I would like to be able to create new applications that support @angular/animations without additional configurations.

An option I would propose is a --animation flag to the ng new command which would allow users to opt-in on user @angular/animations.

Mention any other details that might be useful.

Animations is one of the features I really like about angular. ^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions