Ionic2 Running Apps

Ionic2 running apps

Hello everybody,

today I want to document few usefull commands which are usefull in ionic 2.

Add platform:

If you need your app to be able to execute on some platform you can use following command:

ionic platform add xxx

Where xxx stands for name of platform. It can have following values: windows, android, ios

Run app

If you want to run app in emulator, use the following command:

ionic serve

this command will execute your app in default browser.

ionic run android 

this command will deploy app on your android device and execute it there

Add page

ionic generate page specialPage

this command will generate for you page specialPage with html, scss and ts file. For example when I wanted generate exit page I've used the following command:

ionic generate page exit

No Comments

Add a Comment
Comments are closed