The Ionic framework is pretty great stuff. I was able to successfully build an app with some Angular code I have been working on, but I can't find an answer to the simple question of how to rename the app that gets generated. The output app is always called HelloCordova and there doesn't seem to be any documentation on how to change the name of the app. If I start manually digging through the project directory replacing HelloCordova, I end up with an app that won't run. Surely, people have solved this before.
To do that you can use the Angular CLI command “ng add” to import Ionic packages to the existing project. The following command will help you to do that. After successful package installation, you will take the output as follows. Then you must initialize your existing project with Ionic by using the following command.
Edit: You want to change the config.xml
file in your project's root directory. The tag which is responsible for the app name is <name>
.
look up the config documentation for more.
Updated
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With