Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to rename Ionic app from HelloCordova

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.

like image 992
user2491460 Avatar asked Apr 15 '14 22:04

user2491460


People also ask

Can we convert angular app to Ionic?

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.


2 Answers

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.

like image 193
Clawish Avatar answered Sep 18 '22 15:09

Clawish


Updated

  1. Change the name in config.xml (@ project root) see the : documentation.
  2. Execute this command : $ sudo ionic cordova platform remove ios
  3. Check if the folder ios under platforms folder is deleted.
  4. Execute this command : $ sudo ionic cordova platform add ios
like image 39
Saeed Avatar answered Sep 19 '22 15:09

Saeed