11
Ionic 2 - Intro Wojciech Langiewicz - ng-wrocław #13 http://www.wlangiewicz.com

Ionic 2 intro

Embed Size (px)

Citation preview

Page 1: Ionic 2   intro

Ionic 2 - Intro

Wojciech Langiewicz - ng-wrocław #13http://www.wlangiewicz.com

Page 2: Ionic 2   intro

Agenda● What is Ionic?● Overview of Ionic ecosystem● Some of the Ionic features● Demo

Page 3: Ionic 2   intro

What is Ionic?

Page 4: Ionic 2   intro

What is Ionic?● library of mobile-optimized HTML, CSS and JS● Hybrid apps for iOS and Android● Built on top of Angular● Native focused (look and feel)● Integrates with Cordova

Page 5: Ionic 2   intro

few technical things● Write your application in JS (ES5, 2015, 2016) or TS● CSS (SASS or others)● HTML5 (with custom tags)● Ionic wraps that code and displays everything as a

WebView

Page 6: Ionic 2   intro

Ionic 1 VS Ionic 2● Ionic 1 was based on Angular 1● Ionic 2 is based on Angular 2

○ Ionic 2 improves performance○ Planned support for Windows 10 Phone○ Aiming latest Android and iOS versions○ Ionic 2 is in beta and will be released when Angular 2 is ready

● For new projects: IMO no reason to use Ionic v1

Page 7: Ionic 2   intro

cordova integration● Ionic is using cordova to integrate with native features● You can use cordova plugins (will be showed during demo)● Plugins don’t work via web browser (on desktop)● After adding few plugins testing via browser becomes

problematic●

Page 8: Ionic 2   intro

Example Cordova Plugins● Access native features via JS API● Battery, Camera, Contacts, GPS, Compass, Filesystem● Native Notifications, Vibration, Gyroscope, Etc● In-App Purchases● AdMob● Google Analytics● Facebook, OAuth Login● SQLite

Page 9: Ionic 2   intro

Ionic creator● Web application designed for quick prototyping● Simple drag & drop● Export your project and start coding● Quick Demo

Page 10: Ionic 2   intro

ionic Demohttps://github.com/wlk/gifs