mobile_app_development_with_ionic.pdf

(6345 KB) Pobierz
Mobile App
Development
with Ionic
CROSS-PLATFORM APPS WITH IONIC, ANGULAR & CORDOVA
Chris Griffith
d
se
vi ion
Re it
Ed
Mobile App Development with
Ionic, Revised Edition
Cross-Platform Apps with
Ionic, Angular, and Cordova
Chris Griffith
Beijing
Boston Farnham Sebastopol
Tokyo
Mobile App Development with Ionic, Revised Edition
by Chris Griffith
Copyright ©2017 Chris Griffith. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online editions are
also available for most titles (http://oreilly.com/safari). For more information, contact our corporate/insti‐
tutional sales department: 800-998-9938 or
corporate@oreilly.com.
Editor:
Meg Foley
Production Editor:
Justin Billing
Copyeditor/Proofreader:
Amanda Kersey
Indexer:
WordCo Indexing Services, Inc.
September 2017:
First Edition
Interior Designer:
David Futato
Cover Designer:
Karen Montgomery
Illustrator:
Rebecca Demarest
Revision History for the First Edition
2017-08-18:
First Release
See
http://oreilly.com/catalog/errata.csp?isbn=9781491998120
for release details.
The O’Reilly logo is a registered trademark of O’Reilly Media, Inc.
Mobile App Development with Ionic,
Revised Edition,
the cover image, and related trade dress are trademarks of O’Reilly Media, Inc.
While the publisher and the author have used good faith efforts to ensure that the information and
instructions contained in this work are accurate, the publisher and the author disclaim all responsibility
for errors or omissions, including without limitation responsibility for damages resulting from the use of
or reliance on this work. Use of the information and instructions contained in this work is at your own
risk. If any code samples or other technology this work contains or describes is subject to open source
licenses or the intellectual property rights of others, it is your responsibility to ensure that your use
thereof complies with such licenses and/or rights.
978-1-491-99812-0
[LSI]
Table of Contents
Foreword. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xi
Preface. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
1. Hybrid Mobile Apps. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What Is the Ionic Framework?
What’s New in Ionic?
Comparing Mobile Solutions
Native Mobile Applications
Mobile Web Applications
Hybrid Mobile Applications
Understanding the Ionic Stack
Ionic Framework
Angular
Cordova
Prerequisites for Ionic Application Development
Summary
Installing the Ionic Framework
Installing Node.js
Installing Git
Installing the Apache Cordova CLI
Installing Ionic CLI
Starting a New Ionic Project
Ionic Project Folder Structure
Platform Tools Installations
iOS
2
2
3
3
4
4
5
5
6
6
7
7
2. Setting Up Our Development Environment. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
9
10
11
11
11
12
12
15
15
iii
Zgłoś jeśli naruszono regulamin