Professional Documents
Culture Documents
In APEX
Dan McGhan
Senior Technical Consultant
My background
Dan McGhan
Senior consultant with Accenture Enkitec
Group
Joined in March 2013
dmcghan@enkitec.com
@dmcghan
Hammer syndrom
I call it the law of the instrument, and it may be
formulated as follows: Give a small boy a hammer,
and he will find that everything he encounters
needs pounding
~Abraham Kaplan
What is Angular?
A JavaScript MVC framework
Others include Backbone, Ember, & Knockout
Application states
Persisted state
Always database server
Session state
Database, middle tier, or client side
Page state
Always client side
10
HALF CODES
A Dan McGhan Classic
LIVE DEMO
DAN MCGHAN
13
Asset files
Create a directory on the file system
/c/todos
14
Page template
Copy default page template as Angular Page
Add ng-app & ng-controller to HTML
15
Page template
Add ng-view to HTML
16
Page template
Include JS & CSS from file system
17
Ajax requests
Use 1 generic Ajax process for all RPC methods
Use Angular HTTP interceptors to mask
complexity
Example in app-pre-browserify.js
Standardize all Ajax processes to use PL/JSON
JSON in & out
Example in todo_api.pkb & todo_api.pks
18
Summary
Angular is very powerful
Feature rich
Built for testing (yes, you should be testing)
21
http://www.enkitec.com
22