Wednesday, 13 April 2016

Installing Ionic V2 in system

Install the Ionic SDK and create Ionic 2 projects, you’ll need to install the latest beta release:

$ npm install -g ionic@beta

Once that’s done, create your first Ionic app: 

$ ionic start cutePuppyPics --v2
 
To run your app, cd into the directory that was created and then run the ionic serve command:

$ cd cutePuppyPics
$ ionic serve
 
 

Building for Android

To build for Android, you’ll need to add the Android platform module to Cordova:

$ ionic platform add android
 

Building for iOS

To build for iOS, we need to add the iOS platform module to Cordova:
$ ionic platform add ios
 

Worried about your V1 Ionic projects? Don’t worry! The beta release has all the functionality to work with both V1 projects and V2 projects.