Wednesday, August 7, 2019

Ionic 4

1. Install ionic
    C:\Users\OMG>npm install -g ionic
2. Install cordova
    C:\Users\OMG>npm install -g cordova

3. You can install both ionic and  cordova togather
    C:\Users\OMG>npm install -g cordova ionic

4. Check version of ionic
     C:\Users\OMG>ionic info
     C:\Users\OMG>ionic -v

5. Generate new ionic 4 project
     C:\Users\OMG\Desktop\myIoApp>ionic start myIoApp blank --type=angular

6. Genrate new page this is include with complete module of package html file, ts files
    C:\Users\OMG\Desktop\myIoApp> ionic g page detail

   Genrate new page under folder this is include with complete module of package html file, ts files
   ..App> ionic g page folderName/detail

7. Open or Debug or Compile
   > ionic serve

8. Ionic serve with cordova
>ionic serve --cordova --platform browser

9. Ionic lab or Android test in Ionic
>npm i @ionic/lab

No comments:

Post a Comment

Navigation in ionic or redirect in ionic

1.  Redirect as return View in mvc code in .ts       this .router.navigateByUrl( "/rec-view/" +d.Srno,{ skipLocationChange:tru e...