Skip to content

imports are not being alphabetically ordered during components generation using ChangeDetectionStrategy set to onPush #23156

Closed

Description

@eltonc-dev

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • extract-i18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

No

Description

Using `ng g component --changeDetection=OnPush` the imports are not being alphabetically imported

🔬 Minimal Reproduction

  • run ng g component --changeDetection=OnPush
  • The generated component (ts file) is generated like this:
    Captura de Tela 2022-05-17 às 15 21 47
  • But it should be like this, to be alphabetically ordered:
    Captura de Tela 2022-05-17 às 15 22 15

🔥 Exception or Error





🌍 Your Environment

Captura de Tela 2022-05-17 às 15 29 53

Anything else relevant?

Activity

  1. added
    help wanted
    good first issue
    on May 17, 2022
  2. modified the milestone: needsTriage on May 17, 2022
  3. added 2 commits that reference this issue on May 18, 2022
    d899091
    b928d97
  4. angular-automatic-lock-bot commented on Jun 18, 2022

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  5. locked and limited conversation to collaborators on Jun 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: @schematics/angulargood first issuehelp wantedseverity2: inconvenienttype: bug/fix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions