-
Book Overview & Buying
-
Table Of Contents
Getting Started with Ionic
By :
In the Ionic CLI, you can start a new project using a specific template. There are predefined templates available in the Ionic CLI toolset. They all provide a starting point for developers and also act as a skeleton for your new app. We have already seen the command to start a new project with a specific template earlier on in this chapter. If we want to choose the tabs template, then the command would look like the following:
$ ionic start TabsDemo tabs
We will be discussing the important files in each of the templates.
It contains the bare minimum code for an Ionic App. It injects Ionic and Angular dependencies into your index.html and creates separate folders for CSS, js, and img. It also provides a basic view code in the body tag of index.html to show ion-pane and ion-header content.
The tabs template provides an app layout with the bottom three tabs and multiple views for each tab. It sets up the controllers and templates for...
Change the font size
Change margin width
Change background colour