Ionic 5 setup
-
Install Ionic - Open the command prompt and run
npm install -g @ionic/cli
-
Update the angular cli
npm install -g @angular/cli@latest
-
Create an app ionic start nagTabs tabs syntax: ionic start app types are a. tabs: A tabs based layout b. sidemenu: A sidemenu based layout c. blank: An empty project with a single page
- Create framework features syntax: ionic generate [options]
type of framework features:
page componet service module class directive gaurd
name: The name/path of the feature being generated
5. Run the App on browser cd myApp ionic serve
Run the app on Android/iOS/Windows
6. ionic cordova build Build (prepare + compile) an Ionic project for a given platform syntax: ionic cordova build [options] eg: ionic cordova build android
7. ionic cordova run Run an Ionic project on a connected device syntax: ionic cordova run [] [options] eg: ionic cordova run android