Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Learning Ionic
  • Toc
  • feedback
Learning Ionic

Learning Ionic

By : Ravulavaru
4.4 (14)
close
Learning Ionic

Learning Ionic

4.4 (14)
By: Ravulavaru

Overview of this book

This book is intended for those who want to learn how to build hybrid mobile applications using Ionic. It is also ideal for people who want to explore theming for Ionic apps. Prior knowledge of AngularJS is essential to complete this book successfully.
Table of Contents (12 chapters)
close
11
Index

Building the application


Now that we have our server set up and have an idea as to what we are going to build, let's start building it. We are going to perform the following steps, for us to easily build the app:

  1. Scaffold the side menu template.

  2. Refactor the template.

  3. Build the authentication, local storage and REST API Factories.

  4. Create controllers for each route and integrate them with the corresponding Factories.

  5. Create templates and integrate with the Controller data.

Step 1 – Scaffolding the side menu template

The first thing we are going to do is scaffold a side menu template. Create a folder named chapter6. Open a terminal/prompt inside the chapter6 folder and run this:

ionic start -a "Ionic Book Store" -i app.bookstore.ionic book-store sidemenu

This will scaffold the side menu application. We will not be using theming in our Bookstore app, so there will be no SCSS setup.

Step 2 – Refactoring the template

In all the examples we have built so far, we have created components from scratch. But...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete