34
Building Hybrid Apps with AngularJS and Ionic 1

Building Hybrid Apps with AngularJS and Ionic

Embed Size (px)

Citation preview

Page 1: Building Hybrid Apps with AngularJS and Ionic

1

Building Hybrid Apps with AngularJS and Ionic

Page 2: Building Hybrid Apps with AngularJS and Ionic

2

• Younes Adounis• CTO @ Synergie Media• Agadir, Maroc• @unees15• Adounisyounes.com

Page 3: Building Hybrid Apps with AngularJS and Ionic

3

Overview1. Native vs Hybrid Apps2. Intro Ionic3. UI Components4. Ionic CLI5. Demos

Page 4: Building Hybrid Apps with AngularJS and Ionic

4

The Downsides of Native• Proficiency in each platform required• Entirely separate code bases• Timely & expensive development• Diminishing returns

Page 5: Building Hybrid Apps with AngularJS and Ionic

5

More Platforms. More Problems.

Why are we still coding for multiple platforms?

Page 6: Building Hybrid Apps with AngularJS and Ionic

6

“ Is there an alternative? ”

Page 7: Building Hybrid Apps with AngularJS and Ionic

7

• Hybrid Apps: HTML5 that acts like native• Phonegap renamed to Cordova• Web wrapped in native layer• Direct access to native APIs• Familiar web dev environment• Develop a single code base (web platform)

Page 8: Building Hybrid Apps with AngularJS and Ionic

8

• Have a multi-million dollar budget?• Have a large team of experienced native developers?• Does your billion-dollar revenue depend on this app?• If so...do native

Are You Building the Facebook app?

Page 9: Building Hybrid Apps with AngularJS and Ionic

9

“ Hybrid apps are slow ! ”

Page 10: Building Hybrid Apps with AngularJS and Ionic

10

Mobile devices have rapidly improved!

Year Device Processor RAM2007 iPhone 620 MHz 128 MB2010 iPhone 4 1 GHz 512 MB2016 iPhone 6s 1.8 GHz dual-core 2 GB

Page 11: Building Hybrid Apps with AngularJS and Ionic

11

• Common UI• Views• Navigation and stack history• Transitions• Gestures

Native SDKs Are Great

Page 12: Building Hybrid Apps with AngularJS and Ionic

12

• It's the wild-west for hybrid apps• We need to bridge the gap between web and native• We need rich, native-style UI components and interactions• We need UI APIs, not just jQuery widgets

There's No Web SDK

Page 13: Building Hybrid Apps with AngularJS and Ionic

13

Page 14: Building Hybrid Apps with AngularJS and Ionic

14

Page 15: Building Hybrid Apps with AngularJS and Ionic

15

Page 16: Building Hybrid Apps with AngularJS and Ionic

16

Page 17: Building Hybrid Apps with AngularJS and Ionic

17

Page 18: Building Hybrid Apps with AngularJS and Ionic

18

Page 19: Building Hybrid Apps with AngularJS and Ionic

19

Page 20: Building Hybrid Apps with AngularJS and Ionic

20

Page 21: Building Hybrid Apps with AngularJS and Ionic

21

UI Component Overview

Page 22: Building Hybrid Apps with AngularJS and Ionic

22

Page 23: Building Hybrid Apps with AngularJS and Ionic

23

Page 24: Building Hybrid Apps with AngularJS and Ionic

24

Page 25: Building Hybrid Apps with AngularJS and Ionic

25

Page 26: Building Hybrid Apps with AngularJS and Ionic

26

Page 27: Building Hybrid Apps with AngularJS and Ionic

27

Page 28: Building Hybrid Apps with AngularJS and Ionic

28

Page 29: Building Hybrid Apps with AngularJS and Ionic

29

Ionic CLI

Page 30: Building Hybrid Apps with AngularJS and Ionic

30

Ionic CLI

$ npm install -g ionic cordova

$ ionic start myapp sidemenu

$ cd myapp

$ ionic serve

Page 31: Building Hybrid Apps with AngularJS and Ionic

31

Page 32: Building Hybrid Apps with AngularJS and Ionic

32

Page 33: Building Hybrid Apps with AngularJS and Ionic

33

Page 34: Building Hybrid Apps with AngularJS and Ionic

34

THANK YOU