19
Introduction to Ionic Santa Barbara AngularJS Meetup January 15, 2015 Santa Barbara AngularJS, Sol Tran

Introduction to Ionic (SB AngularJS Meetup)

Embed Size (px)

Citation preview

Page 1: Introduction to Ionic (SB AngularJS Meetup)

Introduction to Ionic

Santa Barbara AngularJSMeetup

January 15, 2015

Santa Barbara AngularJS, Sol Tran

Page 2: Introduction to Ionic (SB AngularJS Meetup)

Thank you to our sponsor for hosting

Page 3: Introduction to Ionic (SB AngularJS Meetup)

http://bit.ly/sbangular1

Follow us on

Twitter

SB AngularJS:

@SbAngular

Organizer:

Sol Tran, @soltran

Lead Software Engineer at

@ShipHawk

Page 4: Introduction to Ionic (SB AngularJS Meetup)

Introductions!

Page 5: Introduction to Ionic (SB AngularJS Meetup)

TABLE of CONTENTS

• What is Ionic?

• Benefits of Ionic

• Ionic tools

Page 6: Introduction to Ionic (SB AngularJS Meetup)

What is Ionic?

• Combines Apache Cordova with AngularJS along

with custom javascript, html, and css3

• Supported Devices include:

• iOS 6+

• Android 4+

• Windows Phone 8+

• FireFox OS

Page 7: Introduction to Ionic (SB AngularJS Meetup)

Why Ionic?

• Platform Independent

• HTML5, CSS3 & JS

• Rapid iteration and development

• Direct access to native APIs with Cordova

Page 8: Introduction to Ionic (SB AngularJS Meetup)

What is Cordova?

• Apache Cordova is a platform for building

native mobile apps using HTML, CSS,

and Javascript

• Timeline:

2009: PhoneGap started at Nitobi

2011: PhoneGap purchased by Adobe

2012: PhoneGap donated to Apache

And renamed as Cordova

Page 9: Introduction to Ionic (SB AngularJS Meetup)

Native Plugins Available

• ngCordova has over 63 native Cordova plugins

which can be added to Angular Cordova apps

• These include:

• Touch ID

• Oauth

• Camera

• Push Notifications

• Geolocation

• Progress indicator

• Flashlight

• Splash Screen

• Plus javascript libraries such as Ion Swipe Cards

Page 10: Introduction to Ionic (SB AngularJS Meetup)

How does it come together?

Your App

Ionic

AngularJs

WebView (Cordova)

Native SDK

Page 11: Introduction to Ionic (SB AngularJS Meetup)

Performance?

• Hardware accelerated animations• Minimal DOM Manipulation• Remove 300ms tap delay

Mobile Devices have improved!2010 iPhone 4, 1 GHz processor, 512 MB; iPhone 5S, 1.3 GHz dual-core, 1 GB Ram

Web Standards have improved!Caniuse.com looking mighty green

Plus performance is thought through

Page 12: Introduction to Ionic (SB AngularJS Meetup)

Ionicons!

Page 13: Introduction to Ionic (SB AngularJS Meetup)

So is Ionic Production Ready?

• http://showcase.ionicframework.com/

• KeyChain Logistics (Uber for trucks)

• Sworkit (Downloaded over 3 million times)

• Songhop

• 12,899+ stars

• 1.0 beta14 is out, with 1.0 coming out soon

• Ionic CLI averages 1,000 downloads/day

• Angular Material is being built by the Ionic

Team in conjunction with the Angular Team

Page 14: Introduction to Ionic (SB AngularJS Meetup)

Ionic Creator

• https://creator.ionic.io/

• Great for prototyping, setting up

Page 15: Introduction to Ionic (SB AngularJS Meetup)

Ionic View

https://itunes.apple.com/us/app/ionic-view/id849930087?mt=8

Tool that makes it fast and easy to test your ionic apps on the phone

When you app is ready, just type in your command line $ ionic upload

Page 16: Introduction to Ionic (SB AngularJS Meetup)

Demo Time

What you’ll need:

• Node / NPM

• Cordova

• Ionic

1. $ npm install –g cordova ionic

2. https://creator.ionic.io/ to start

prototyping your app

Page 17: Introduction to Ionic (SB AngularJS Meetup)

Resources

• Ng-cordova http://ngcordova.com/

• http://learn.ionicframework.com/resources

/

Page 18: Introduction to Ionic (SB AngularJS Meetup)

Next AngularJS Meetup

Page 19: Introduction to Ionic (SB AngularJS Meetup)

http://bit.ly/sbangular1

Follow us

SB AngularJS: @SbAngular

Organizer:

Sol Tran, @soltran

Lead Software Engineer at @ShipHawk