Learning Ionic
eBook - ePub

Learning Ionic

Arvind Ravulavaru

Condividi libro
  1. 388 pagine
  2. English
  3. ePUB (disponibile sull'app)
  4. Disponibile su iOS e Android
eBook - ePub

Learning Ionic

Arvind Ravulavaru

Dettagli del libro
Anteprima del libro
Indice dei contenuti
Citazioni

Informazioni sul libro

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.

Domande frequenti

Come faccio ad annullare l'abbonamento?
È semplicissimo: basta accedere alla sezione Account nelle Impostazioni e cliccare su "Annulla abbonamento". Dopo la cancellazione, l'abbonamento rimarrà attivo per il periodo rimanente già pagato. Per maggiori informazioni, clicca qui
È possibile scaricare libri? Se sì, come?
Al momento è possibile scaricare tramite l'app tutti i nostri libri ePub mobile-friendly. Anche la maggior parte dei nostri PDF è scaricabile e stiamo lavorando per rendere disponibile quanto prima il download di tutti gli altri file. Per maggiori informazioni, clicca qui
Che differenza c'è tra i piani?
Entrambi i piani ti danno accesso illimitato alla libreria e a tutte le funzionalità di Perlego. Le uniche differenze sono il prezzo e il periodo di abbonamento: con il piano annuale risparmierai circa il 30% rispetto a 12 rate con quello mensile.
Cos'è Perlego?
Perlego è un servizio di abbonamento a testi accademici, che ti permette di accedere a un'intera libreria online a un prezzo inferiore rispetto a quello che pagheresti per acquistare un singolo libro al mese. Con oltre 1 milione di testi suddivisi in più di 1.000 categorie, troverai sicuramente ciò che fa per te! Per maggiori informazioni, clicca qui.
Perlego supporta la sintesi vocale?
Cerca l'icona Sintesi vocale nel prossimo libro che leggerai per verificare se è possibile riprodurre l'audio. Questo strumento permette di leggere il testo a voce alta, evidenziandolo man mano che la lettura procede. Puoi aumentare o diminuire la velocità della sintesi vocale, oppure sospendere la riproduzione. Per maggiori informazioni, clicca qui.
Learning Ionic è disponibile online in formato PDF/ePub?
Sì, puoi accedere a Learning Ionic di Arvind Ravulavaru in formato PDF e/o ePub, così come ad altri libri molto apprezzati nelle sezioni relative a Ciencia de la computación e Desarrollo de aplicaciones. Scopri oltre 1 milione di libri disponibili nel nostro catalogo.

Informazioni

Anno
2015
ISBN
9781783552603

Learning Ionic


Table of Contents

Learning Ionic
Credits
Foreword
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Ionic – Powered by AngularJS
Understanding the separation of concerns
AngularJS components
AngularJS directives
AngularJS services
AngularJS resources
Summary
2. Welcome to Ionic
Mobile Hybrid Architecture
What is Apache Cordova?
What is Ionic?
Software setup
Install Node.js
Install Git
Install Bower
Install Gulp
Install Sublime Text
Install Cordova and Ionic CLI
The platform guide
Hello Ionic
The browser developer tools setup
Google Chrome
Mozilla Firefox
The Ionic project structure
The config.xml file
The www folder
Scaffolding the tabs template
Scaffolding the side menu template
generator-ionic
Installing generator-ionic
Summary
3. Ionic CSS Components and Navigation
Ionic CSS components
The Ionic grid system
The page structure
Buttons
Lists
Cards
Ionicons
Form elements
Integrating Ionic CSS components with AngularJS
The Ionic router
A simple two-page app
Summary
4. Ionic and SCSS
What is Sass?
Setting up SCSS in our Ionic project
The manual setup
The Ionic CLI task
Working with Ionic SCSS
Basic swatch
Understanding the Ionic SCSS setup
Using variables and mixins
The SCSS workflow
Building a swatch
Summary
5. Ionic Directives and Services
Ionic directives and services
The Ionic Platform service
registerBackButtonAction
The on method
Headers and footers
Content
ion-content
ion-scroll
ion-refresher
ion-infinite-scroll
$ionicScrollDelegate
Navigation
ion-view
Ionic view events
ion-nav-bar
ion-nav-buttons
$ionicNavBarDelegate
$ionicHistory
Tabs and side menu
Ionic loading
The Action Sheet service
Popover and Popup services
$ionicPopup
The ion-list and ion-item directives
Gesture directives and services
Utilities
Summary
6. Building a Bookstore App
An introduction to the Bookstore application
The Bookstore architecture
The server architecture
The server-side API documentation
The client architecture
Code on GitHub
A Bookstore demo
The development flow
Setting up the server
Building the application
Step 1 – Scaffolding the side menu template
Step 2 – Refactoring the template
Refactoring the menu
Refactoring the module name
Adding a run method and modifying routes
Refactoring templates
Step 3 – Building authentication, localStorage, and the REST API factory
The Ionic loading factory
The localStorage factory
The Authentication factory
The REST API factory
Step 4 – Creating controllers for each route and integrating with the factory
The application controller
The browse controller
The book controller
The cart controller
The purchase controller
Step 5 – Creating templates and integrating with the controller data
The Login template
The Browse template
The Book template
The Cart template
The Purchase template
Summary
7. Cordova and ngCordova
Setting up a platform-specific SDK
The Android setup
The iOS setup
Testing the setup
Testing for Android
Testing for iOS
Getting started with Cordova plugins
The Ionic plugin API
Add a plugin
Remove a plugin
List added plugins
Search plugins
The Cordova whitelist plugin
ngCordova
Setting up ngCordova
Legend
$cordovaToast
$cordovaDialogs
$cordovaFlashlight
$cordovaLocalNotification
$cordovaGeolocation
Summary
8. Building a Messaging App
The Ionic Chat app
Firebase
Setting up a Firebase account
AngularFire
The application architecture
Authentication
The application flow
Previewing the app
Data structure
Cordova plugins
Code on GitHub
Developing the application
Scaffolding and setting up the app
Installing the required Cordova plugins
Getting the Google API key
Setting up routes and route authentication
Setting up services/factories
Setting up a map directive
Setting up controllers
Setting up templates
Setting up SCSS
Testing the application
Summary
9. Releasing the Ionic App
Preparing the app for distribution
Setting up icons and splash screens
Updating the config.xml file
The PhoneGap service
Generating installers using the Cordova CLI
Android installer
iOS installer
The Ionic package
Uploading the project to Ionic cloud
Generating the required keys
Summary
A. Additional Topics and Tips
Ionic CLI
Ionic login
Ionic start task
No Cordova flag
Initialize a project with SCSS support
Listing all Ionic templates
App ID
Ionic link
Ionic info
Ionic templates
Ionic browsers
Ionic lib
Ionic state
Ionic ions
Ionic resources
Ionic server, emulate, and run
Ionic upload and share
Ionic view
Ionic help and docs
Ionic Creator
Ionic.io apps
Ionic Push
Ionic Deploy
Ionic Vagrant box
Ionic Sublime Text plugins
Summary
Index

Learning Ionic

Copyright © 2015 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 bri...

Indice dei contenuti