Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Ionic Framework By Example
Ionic Framework By Example

Ionic Framework By Example: Build amazing cross-platform mobile apps with Ionic, the HTML5 framework that makes modern mobile application development simple

eBook
Mex$378.99 Mex$541.99
Paperback
Mex$676.99
Subscription
Free Trial

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Ionic Framework By Example

Chapter 2. To-Do List App

In this chapter, we will be diving headfirst into Ionic and will be using a lot of the Ionic CLI tool. We will create our first Ionic application and add some basic Ionic features to our app. We will also get to run our app for the first time using Ionic and will debug our app in Chrome. We will finish this chapter by creating a to-do list application with Ionic. This application will simply let us add items to our app and also provide us a way of deleting these items or marking them as done.

Creating our first application

Creating a new project with Ionic is actually a very pain-free experience with the Ionic CLI. There are different ways to create a new Ionic project but the easiest and more standard technique is to use the Ionic templates. This is by far the easiest way, and it let us use any of the three standard templates provided by Ionic.

These templates include:

  • The blank template: This creates a new project with some boilerplate code to help you get set up with a blank application
  • The tabs template: This is the same as the first but instead of a blank application, you get an application with a tabbed design
  • The side menu template: This creates a new application with a side menu design and some boilerplate

We will be using each of these in this book at some point of time. For now, we are going to start with the first and create a brand new Ionic project using the blank template. Before we move on, let's have a look at the command that the Ionic CLI uses to create a...

The Ionic workflow

When you create a new Ionic project, there are a couple of folders and files that come as stock as part of the generated project. Your directory should look similar to what is seen in the following screenshot:

The Ionic workflow

The structure you see is pretty much the same as in every Cordova project, with the exception of a few files and folders. For example, there is a scss folder. This contains a file that lets us customize the look and feel of our application and will be covered in detail in later chapters. There are also the platforms and plugins folder. The platforms folder, in most cases is auto-generated, but we will not be covering them in this book so you can ignore them for the time being.

You will also notice that in your www/lib folder, there is a folder called ionic that contains all the required files to run Ionic. There are css, fonts, js, and scss folder.

  • css: This folder contains all the default CSS that come with an Ionic app.
  • fonts: Ionic comes with its own font and Icon...

Summary

In this chapter, we got to create our very first Ionic application using the Ionic blank application template. We had a look at what the Ionic workflow looks like and also got to see some of the files that make up the workflow. We then dived in and discussed about how we intended to build our to-do list application. We further went ahead and actually implemented the UI of our to-do list app based on a wireframe. We wrote some Angular code and wired it up to the user interface we created.

In the next chapter, we will learn different ways to run and test our application for the very first time with the Ionic CLI.

Left arrow icon Right arrow icon

Key benefits

  • • Learn how to use one of the most exciting mobile development frameworks around to build even better apps
  • • Follow the featured sample projects to experience Ionic’s impressive capabilities
  • • Extend your developer skillset to build, test, and launch mobile apps with confidence

Description

Change doesn’t have to be challenging. Sometimes it can be simple – sometimes it just makes sense. With Ionic, mobile development has never been so simple, so elegant and obvious. By helping developers to harness AngularJS and HTML5 for mobile development, it’s the perfect framework for anyone obsessed with performance, and anyone that understands just how important a great user experience really is. This book shows you how to get started with Ionic framework immediately. But it doesn’t just give you instructions and then expect you to follow them. Instead it demonstrates what Ionic is capable of through three practical projects you can follow and build yourself. From a basic to-do list app, a London tourist app, to a complete social media app, all three projects have been designed to help you learn Ionic at its very best. From setting up your project to developing on both the server side and front end, and best practices for testing and debugging your projects, you’ll quickly become a better mobile developer, delivering high performance mobile apps that look awesome. Ionic Framework by Example is for people who don’t want to learn now, build later – it’s for people who want to learn and build at the same time – so they can meet today’s mobile development challenges head on and deliver better products than anyone else.

Who is this book for?

This book is for anyone who wants to see Ionic in action - and find out how it could transform the way they build mobile apps. If you’re a JavaScript web developer, you’ll be building great projects in no time.

What you will learn

  • • Learn Ionic by creating three complete mobile applications
  • • Get to know the Ionic CLI
  • • Add basic and advanced features to the Ionic framework
  • • Connect an Ionic app with a Firebase back end
  • • Integrate PhoneGap plugins with NG-Cordova
  • • Test your apps to improve and optimize performance

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jan 27, 2016
Length: 158 pages
Edition : 1st
Language : English
ISBN-13 : 9781785282720
Category :
Languages :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Jan 27, 2016
Length: 158 pages
Edition : 1st
Language : English
ISBN-13 : 9781785282720
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Mex$85 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Mex$ 2,358.97
Ionic Framework By Example
Mex$676.99
Learning Ionic
Mex$1004.99
Getting Started with Ionic
Mex$676.99
Total Mex$ 2,358.97 Stars icon

Table of Contents

11 Chapters
1. First Look at Ionic Chevron down icon Chevron up icon
2. To-Do List App Chevron down icon Chevron up icon
3. Running Ionic Apps Chevron down icon Chevron up icon
4. Ionic Components Chevron down icon Chevron up icon
5. The London Tourist App Chevron down icon Chevron up icon
6. Advanced Ionic Components Chevron down icon Chevron up icon
7. Customizing the App Chevron down icon Chevron up icon
8. Building a Simple Social App Chevron down icon Chevron up icon
9. Connecting to Firebase Chevron down icon Chevron up icon
10. Roundup Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.8
(6 Ratings)
5 star 33.3%
4 star 50%
3 star 0%
2 star 0%
1 star 16.7%
Filter icon Filter
Top Reviews

Filter reviews by




Nadia Jalloh Jan 30, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Love the cover😊
Amazon Verified review Amazon
Client d'Amazon Aug 07, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
J'avais des connaissances dans le domaine du web (HTML5, AngulaJS), j'ai très bien compris le livre, bien expliqué même avec mon anglais qu'est pas au top
Amazon Verified review Amazon
Syed Peer Jun 14, 2016
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
This is a great little book. The style is smooth and well paced and the material presented in a non intimidating manner to the reader. The author makes sure to give the reader a quick ramp up on the key features so that you can immediately see results within your work -- and the gratification therefrom. This is an excellent, down and dirty, hand-on working book for the Ionic beginner and provides a nicely rounded out course of study that touches all the key points without getting the reader bogged down in minutiae. Highly recommended as a starter text for the aspiring Ionic Framework learner.
Amazon Verified review Amazon
Rr Mar 03, 2016
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Overall I liked the book. It serves its purposes well in that it was an introduction. It is definitely better than reading the manual as you get to EXPERIENCE some of the cool features in a very short amount of time as you just copy/paste (I read an online version from the library) the code and off you go. You can get a sense of accomplishment very quickly and you DO get to see quite a number of features.The short length of the book is its strength in that it is not overwhelming and is beginner friendly. But perhaps this also leave something to be desired. The book has a generous amount of screen shots and code samples which are completely necessary and helpful, but at 158 pages, if one are not counting these large pictures, there simply isn't whole lot of content (text).If the author makes the book bigger by adding more content, but keep the same easy to read format, I think the book would be even better.
Amazon Verified review Amazon
Amazon Customer Apr 22, 2016
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Ok
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.