Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The selector of the root component created by the ng add ng-alain command is not created according to the prefix configuration of the project #2098

Open
jingxin2015 opened this issue Sep 14, 2021 · 1 comment

Comments

@jingxin2015
Copy link

Reproduction link

https://ng-alain-setup.stackblitz.io

Steps to reproduce

  1. Use the following command to create an angular project

ng new my-app --prefix="my" --skip-git --skip-tests --style="less"

  1. Execute the following command:

ng add ng-alain

  1. The options during installation are as follows:
  • Which default language would you like to use? 简体中文 (zh)
  • Would you like to add code style plugin? (default: Y) Yes
  • Would you like to add dynamic form (sf component) plugin? (default: Y) No
  • Would you like to add mock plugin? (default: Y) Yes
  • Would you like to add i18n plugin? (default: N) Yes

What is expected?

The selector of the app component is ‘my-root’

What is actually happening?

The selector of the app component is ‘app-root’

Environment Info
ng-alain 12.2.2
Browser Chrome 93.0.4577.63(正式版本) (64 位)
@jingxin2015
Copy link
Author

I will deal with this issue.

@cipchk cipchk closed this as completed Sep 14, 2021
@cipchk cipchk reopened this Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants