ionic on visualforce and sf1 df14

13

Click here to load reader

Upload: kevin-poorman

Post on 16-Jul-2015

118 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Ionic on visualforce and sf1   df14

Building Rich Salesforce1 Applications with Ionic and AngularJSKevin Poorman

Principal Architect

@CodeFriar

Page 2: Ionic on visualforce and sf1   df14

Place

Customer or

Partner logo in

white area of

slide, centered

Kevin PoormanPrincipal Architect at EDL Consulting.

Page 3: Ionic on visualforce and sf1   df14

Agenda

• Angular in 90 seconds

• The Ionic Framework

• Angular and Ionic on Visualforce

• Mixing server and client side controllers

• In app navigation

• Exposing our App to Salesforce1

• Recap

• Q/a

Page 4: Ionic on visualforce and sf1   df14

Angular.JS in 90 seconds

• Model, View – ViewModel Javascript application framework from

Google.

• “Enterprise” ready with familiar patterns like Dependency Injection

• Directives provide a framework for the development of new html tags

and attributes.

Page 5: Ionic on visualforce and sf1   df14

Ionic

• A combined set of pre-built Angular directives, CSS and Icons

• Can be used to build Cordova based apps OR apps hosted on

Visualforce

• Primary focus is on mobile apps, they work well in Browsers as

well.

• ionicframework.com

Page 6: Ionic on visualforce and sf1   df14

Ionic Directives at a Glance

• Side Menus

• Navigation

• Headers/Footers

• Form inputs

• Modal

• Popovers

• Action sheets

• Loading

• Tabs

• Lists

• Tap & click

Page 7: Ionic on visualforce and sf1   df14

Visualforce, Angular and Ionic stack

• Css

• DirectivesIonic

• Client Side Controllers

• Application Logic (services)Angular

• Server Side Controllers

• Std. Salesforce SecurityVF

Page 8: Ionic on visualforce and sf1   df14

Challenges & tips for this stack

• Apex:Page Options!

• Use Components!

Page 9: Ionic on visualforce and sf1   df14

Demo App Overview

• Essentially a “Contacts” app for

Salesforce contacts

• List view for contacts in the org, with

click for details.

• Stage Right

• Stage Left

• Data Integration

Page 10: Ionic on visualforce and sf1   df14

Use to

introduce a

demo, video,

Q&A, etc. Demo CodeDivider Subtitle

Page 11: Ionic on visualforce and sf1   df14

Recap:

• Ionic provides a Toolkit of

angular directives we can

declaratively use in our HTML

markup

• We use Visualforce to provide

a container our App runs in.

• Angular provides the logic and

integration framework

• All together, we can *rapidly*

build beautiful SF1 apps!

Page 12: Ionic on visualforce and sf1   df14

Use to

introduce a

demo, video,

Q&A, etc. Questions & AnswersDivider Subtitle

Page 13: Ionic on visualforce and sf1   df14

Github Repo: noeticpenguin/IonicOnVisualforce

Twitter me: @codefriar