Get started with Ionic 2.0.0

Ionic 2.0.0 is a stable, production ready version of the Ionic 2. With Ionic 2, Ionic team have dramatically improved performance, reduced the complexity of the code you need to write, and made it possible to build completely bespoke apps that compete with the best apps in the world. Ionic 2 is built on top on Angular 2, so experience in Angular 2 will help you to learn Ionic 2.

Installing Node.js

Ionic 2.0.0 requires Node.js version 6 or greater. You can see complete instructions for installing Node.Js on

Installing Cordova

Cordova act as a container for running our app. Ionic builds on top of Cordova. Cordova allows our HTML5 app to run as native app on Android, iOS, and other platforms.

npm install -g cordova

Installing Ionic CLI

Now we can install the Ionic CLI. It is a command line tool which help us to create new project easily from command line.

npm install -g ionic

After installing the Ionic CLI, run “ionic info” in command line — You can see output similar to the one below

Cordova CLI: 6.4.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Linux 4.2
Node Version: v6.7.0
Xcode version: Not installed

Create a project

Now you can create your first Ionic app. Navigate to the directory where you wish to create your Ionic app and run the below command

ionic start HelloWorld tabs --v2

Here we are telling Ionic CLI to create a project called HelloWorld using the template “tabs”. Ionic comes with 4 default templates — tabs, sidemenu, blank, tutorial.

Run your app in browser

cd HelloWorld
ionic serve

If everything was installed successfully, you can visit URL in your browser http://localhost:8100/ to see your app running.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.