Top Banner
Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5 Yeunyong Kantanet School of Information and Communication Technology University of Phayao
22

Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Jan 20, 2018

Download

Documents

Emil Summers

Why Hybrid
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Chapter 1 Ionic Framework (overview)Front-end framework for developing hybrid mobile apps with HTML5

Yeunyong KantanetSchool of Information and Communication TechnologyUniversity of Phayao

Page 2: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Mobile development

source: Native mobile apps:The wrong choice for business?

Page 3: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Why Hybrid

Page 4: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Open Source Frameworks

Page 5: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Why Ionic

Page 6: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Apache Cordova

Set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript.

Page 7: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Apache Cordova

Camera ○ cordova plugin add org.apache.cordova.camera

○ navigator.camera.getPicture( cameraSuccess, cameraError, cameraOptions );

source: Cordova Camera Plugin

Page 8: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Apache Cordova

Vibration ○ cordova plugin add org.apache.cordova.vibration

○ navigator.vibrate(time)

source: Cordova Vibration Plugin

Page 9: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Angular js

A structural MVC framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly

Page 10: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Angular js

source: AngularJS with TypeScript and Windows Azure Mobile Services

Page 11: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Angular js

source: http://mattiash.github.io/angular-presentation/presentation.html

Page 12: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Angular js

source: Everything you need to understand to start with AngularJS

Directives Directives are markers on a DOM element that tell AngularJS's HTML compiler to attach a specified behavior to that DOM element ● ng-app: responsible for bootstrapping your app defining its scope.

In AngularJS, you can have multiple apps within the same page ● ng-controller: directive defines which controller will be in charge

of your view ● ng-repeat: define your template scope when looping through

collections

Page 13: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Angular js

source: A Step-by-Step Guide to Your First AngularJS App

Page 14: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Angular js

source: A Step-by-Step Guide to Your First AngularJS App

The $scope variable is supposed to link your controller and views. In particular, it holds all the data that will be used within your template.

Page 15: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Angular js

source: Everything you need to understand to start with AngularJS

Filters AngularJS let you change the way your data are displayed in your page

Page 16: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Ionic

Ionic is a bunch of UI elements made in HTML5 & CSS3 that covers a lot of the mobile interactions.

The big advantage of Ionic is all the UI components are AngularJS Directives

Page 17: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Ionic (List)

source: Ionic presentation

Page 18: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Ionic (Complex Lists)

source: Ionic presentation

Page 19: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Ionic (Side menu)

source: Ionic presentation

Page 20: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Ionic (Slide Box)

source: Ionic presentation

Page 21: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Ionic (Pull to refresh)

source: Ionic presentation

Page 22: Chapter 1 Ionic Framework (overview) Front-end framework for developing hybrid mobile apps with HTML5…

Q&A

The End