How to rename angular app?

2020-05-26 15:19发布

问题:

I have an angular app which I'd like to rename. Is there an easy way to rename the app other than renaming manually all the occurrences of the app name (like the folder name, in package.json, etc..)

Thanks!

回答1:

You cannot !!

By default, Angular will create a project/app using name/alias app But after creating a new project if you wish to change the selectors for new component/service etc.

Then you can change the configuration in .angular-cli.json file under the

"prefix": "app",  //change with your name here