Recent work items have begun to contact Ionic2. Study for some time, now share with you.
What is Ionic 2? Baidu, Ionic is an open source, free code base for the development of hybrid mobile applications. You can optimize the performance of HTML, CSS, and JS, build efficient applications, and can also be used to build optimizations for sass and Angularjs. Ionic can be a trusted framework.
Ionic 1 is used for angular 1 and Ionic 2 is used for ANGULAR2.
There is a big difference between angular2 and angular1.
OK, let's start our voyage now.
First install some environment configuration .....
After the environment is configured, open the cmd command.
$ npm install -g [email protected]
Download the latest Ionic version
Go to your program's storage directory.
$ ionic start myApp--v2 //创建你的第一个ionic app
$ CD MYAPP
$ionic serve//start service
This will enable us to start our ionic program.
Next, we can also compile our Android apk or iOS install package, the command is as follows.
$ionic Platform Add Android
Ionic 2 set sail (i)