April 2017
Beginner to intermediate
378 pages
7h 57m
English
Using the Ionic state command, you can manage the state of your Ionic project. Let us say that you are adding a couple of plugins and platforms to test something in your Ionic app. But you would not like to use these if they fail. In that case, you would use the save and restore command.
You can avoid saving the plugins or platforms to the package.json file by running them with a --nosave flag:
ionic plugin add cordova-plugin-console --nosave
Now, you have tested your app with a couple of new plugins (adding them using a --nosave flag) and things seem to work fine. Now you want to add them to your package.json, you can run:
ionic state save
This command looks up your installed plugins and platforms and then adds the required ...
Read now
Unlock full access