29

IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from
Page 2: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

IONIC V2

Mike Hartington | @mhartington

Page 3: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

https://youtu.be/PqdBFYUpQsc

Page 4: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

Side Menus

Tabs

Actionsheet

Modal

Pull To Refresh

Slidebox

Infinite Scroll

Swipeable List

Collection Repeat

Popup

Popover

Loading Overlay

Inputs

Buttons

Form Controls

The beautiful, open source front-end SDK for developing hybrid mobile apps with web technologies.

Page 5: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from
Page 6: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

ONE MILLION apps built with the SDK

Ionic apps top app store charts

Used everywhere from

YC/TechStars companies to Fortune 50 co’s

Page 7: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

But I though the web and hybrid apps were slow?

Maybe a few years ago, but...

Page 8: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

A LOT'S CHANGED

Better APIs

ES6/ES7 & Typescript

Better Devices & OSs

Did I mention ES6?!

Page 9: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

ANGULAR 2

Page 10: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

Angular 1 - getting long in the tooth

Lot of NG specific APIS for yesterday's browser

Wasn't built for ES6/7

Page 11: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

NG-EUROPE

RIP $scope, Directives, Controllers, Service

Page 12: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

angular.module('MainController', [])

.controller('MainCtrl',function($scope){ $scope.items = [1,2,3]; $scope.add = function(){ $scope.items.push($scope.items.length + 1) } })

NG1 APIs

Page 13: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

ES6 Class

export class MainController { constructor(){ this.items = [1,2,3]; } add(){ this.items.push(this.items.length + 1) } }

Page 14: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

TEMPLATES

Page 15: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

NG1 Template

<div ng-controller="MainCtrl"> <p ng-repeat="item in items">{{item}}</p> <button ng-click="add()">Add item</button> </div>

Page 16: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

@Component({ selector: 'hello-app', template: ` <p *ngFor="#item of items">{{item}}</p> <button (click)="add()">Add item</button> `})

export class MainController { constructor(){ this.items = [1,2,3]; } add(){ this.items.push(this.items.length + 1) }}

Page 17: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

Controllers => Classes Directives => Components

Angular.module => ES6 Modules

Page 18: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

WELL, WHAT ABOUT IONIC?

Page 19: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from
Page 20: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

Simplicity

Platform Continuity

Performance

Creative Freedom

Code once

Page 21: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

<ion-content>

<ion-list>

<ion-item>

<ion-avatart item-left>

<img src="img.png" />

</ion-avatart>

<p>User 1</p>

</ion-item>

</ion-list>

</ion-content>

SIMPLICITY

Page 22: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

@Page({ template: ` <ion-navbar> <ion-title>{{name}}</ion-title> </ion-navbar> <ion-content> Hi, my name is {{name}} </ion-content>`})export class Profile { constructor() { this.name = 'Mike'; }}

SIMPLICITY

Page 23: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

LET’S LOOK AT A REAL APP

Page 24: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

EVERYTHING FROM IONIC 1 IS IN IONIC 2

Page 25: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

JUST MUCH MORE POWERFUL

Page 26: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

WANT TO TRY IT OUT?

Page 27: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

NOW IN BETA!IONIC.IO/2

Page 28: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

GET STARTED WITH IONIC

Ionic Documentation

Ionic Forum

Ionic Slack Signup

Contribute on GitHub

Page 29: IONIC V2 - chariotsolutions.com · for developing hybrid mobile apps with web technologies. ONE MILLION apps built with the SDK Ionic apps top app store charts Used everywhere from

https://github.com/mhartington/PhillyETE2016

</HTML>

@mhartington