Ionic 2 Cookbook - Second Edition
eBook - ePub

Ionic 2 Cookbook - Second Edition

  1. 320 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Ionic 2 Cookbook - Second Edition

About this book

Over 30 life-changing recipes to help you create cutting edge, hybrid apps with Ionic 2About This Book• Leverage Ionic 2 and its exciting new features to create cutting edge real-time apps• Work through simple recipes to address your problems directly and solve them effectively• Get examples at each step to guide you on your learning curveWho This Book Is ForThis book is for front end JavaScript developers who know the basics of JavaScript programming. No prior knowledge of Ionic is required to get the most of this book.What You Will Learn• Create custom UIs using Angular 2 directives• Make the best use of REST APIs to submit forms• Create beautiful animations and graphics in the application• Embed videos and other media into the app• Access native device functionalities such as a camera and maps using ngCordova• Theme the application based on the various platform styles available• Publish your application to a variety of platforms• Leverage Angular 2 events and Ionic-specific events to communicateIn DetailDeveloping real-time apps is the need of the hour, and apps that deal with humongous amounts of user data and real-time information that needs to be updated frequently are in high demand. Currently, one of the most popular frameworks for this task is Ionic Framework, which is undergoing a major makeover.This book will get you started with Ionic and help you create Angular 2 components that interact with templates. From there, you'll work with Ionic components and find out how to share data efficiently between them. You'll discover how to make the best use of the REST API to handle back-end services and then move on to animating the application to make it look pretty. You'll learn to add in a local push notification in order to test the app. You'll work with Cordova to support native functionalities on both iOS and Android. From there, you'll get to grips with using the default themes for each platform as well as customizing your own. Finally, you'll see how best to deploy your app to different platforms.This book will solve all your Ionic-related issues through dedicated recipes that will help you get the best out of Ionic.Style and approachThis book is a recipe-based solution to all your Ionic 2 related problems and will help you create cutting edge real-time apps with ease through simple-to-understand step-by-step recipes.

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Ionic 2 Cookbook - Second Edition by Hoc Phan in PDF and/or ePUB format, as well as other popular books in Computer Science & Programming in JavaScript. We have over one million books available in our catalogue for you to explore.

Ionic 2 Cookbook Second Edition


Table of Contents

Ionic 2 Cookbook Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
eBooks, discount offers, and more
Why Subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Creating Our First App with Ionic 2
Introduction
Setting up a development environment
Getting ready
How to do it…
There's More…
Creating a HelloWorld app via the CLI
How to do it…
How it works…
Creating a HelloWorld app via Ionic Creator
Getting ready
How to do it…
There's More…
Viewing the app using your web browser
Getting ready
How to do it…
How it works…
Viewing the app using the Ionic CLI
Getting Ready
How to do it…
Viewing the app using Xcode for iOS
How to do it…
There's more…
Viewing the app using Genymotion for Android
How to do it…
Viewing the app using Ionic View
How to do it…
There's more…
2. Adding Ionic 2 Components
Introduction
Adding multiple pages using tabs
Getting ready
How to do it…
How it works…
See also
Adding left and right menu navigation
Getting ready
How to do it…
How it works…
See also
Navigating multiple pages with state parameters
Getting ready
How to do it…
How it works…
See also
3. Extending Ionic 2 with Angular 2 Building Blocks
Introduction
Creating a custom pizza ordering component
Getting ready
How to do it...
How it works…
See also
Creating a custom username input directive
Getting ready
How to do it...
How it works…
See also
Creating a custom pipe
Getting ready
How to do it...
How it works…
See also
Creating a shared service to provide data to multiple pages
Getting ready
How to do it...
How it works…
See also
4. Validating Forms and Making HTTP Requests
Introduction
Creating a complex form with input validation
Getting ready
How to do it…
How it works…
See also
Retrieving data via a mocked API using a static JSON file
Getting ready
How to do it...
How it works…
See also
Integrating with Stripe for online payment
Getting ready
How to do it...
How it works…
See also
5. Adding Animation
Introduction
Embedding full screen inline video as background
Getting ready
How to do it...
How it works…
Creating a physics-based animation using Dynamics.js
Getting ready
How to do it...
How it works…
See also
Animating the slide component by binding a gesture to the animation state
Getting ready
How to do it...
How it works…
See also
Adding a background CSS animation to the login page
Getting ready
How to do it...
How it works…
See also
6. User Authentication and Push Notification Using Ionic Cloud
Introduction
Registering and authenticating users using Ionic Cloud
Getting ready
How to do it...
How it works...
Building an iOS app to receive push notifications
Getting ready
How to do it...
How it works...
There's more...
Building an Android app to receive push notifications
Getting ready
How to do it...
How it works...
There's more...
7. Supporting Device Functionalities Using Ionic Native
Introduction
Taking a photo using the camera plugin
Getting ready
How to do it...
How it works…
There's more…
Sharing content using the social sharing plugin
Getting ready
How to do it…
How it works…
There's more…
Displaying a term of service using InAppBrowser
Getting ready
How to do it...
How it works…
There's more…
Creating a Taxi app using the Google Maps plugin and geocode support
Getting ready
How to do it...
How it works…
There's more…
8. Theming the App
Introduction
Viewing and debugging themes for a specific platform
Getting ready
How to do it…
How it works…
There's more…
Customizing themes based on the platform
Getting ready
How to do it…
How it works…
There's more…
9. Publishing the App for Different Platforms
Introduction
Adding versioning to future proof the app
Getting ready
How to do it...
How it works…
Building and publishing an app for iOS
Getting ready
How to do it…
How it works…
There's more…
Building and publishing an app for Android
Getting ready
How to do it…
How it works…
Index

Ionic 2 Cookbook Second Edition

Copyright Ā© 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. Howeve...

Table of contents

  1. Ionic 2 Cookbook Second Edition