Ionic 2 - Add a page with command line

Adding a page in Ionic 2 is quite simple, use the following command

ionic g page codeexpertz

where, codeexpertz is the page name. Once this is run, a folder "codeexpertz" will be created under pages folder, which contains following three files.

  • codeexpertz.html
  • codeexpertz.ts
  • codeexpertz.scss
Category: 

Comments

Lenora (not verified)
I wanted to thank you for this wonderful read!! I certainly <br><br> loved every little bit of it. I've got you saved as a favorite to look at new stuff <br><br> you post…