Top Banner
© 2014 KMS Technology
27

Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

May 07, 2015

Download

Technology

Duy Lam

My slide for angularjs at TechCamp Sai Gon 2014
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: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

© 2014 KMS Technology

Page 2: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

BUILDING SINGLE-PAGE WEB APPLICATIONS WITH ANGULARJS

DUY LAM

MAR 2014

Page 3: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

AGENDA

Single-page Web App

AngularJS Highlights

Takeaway

Page 5: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

OBJECTIVES

Understand the Single-page approach Understand the strength of AngularJS

Page 6: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

AGENDA

Single-page Web App

AngularJS Highlights

Takeaway

Page 7: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

Multi-page web application

SINGLE-PAGE WEB APPLICATION

Single-page web application

Page 9: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

NOTABLE FRAMEWORKS

http://todomvc.com

ASP.NET Single Page Application

Page 10: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

AGENDA

Single-page Web App

AngularJS Highlights

Takeaway

Page 11: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

HIGHLIGHTS

MVC architectureDirectives & Filters

Page 12: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

WHY ANGULARJS

Maintained by Google and community MIT license (like jQuery) First release v0.9.0 on Oct, 2010

(shameless ad -:) Many killer features

Page 13: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

DEMO @ HTTP://DUYLAM.GITHUB.IO/ANGULARJS-TECHCAMP2014

Page 14: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

HIGHLIGHTS

MVC architectureDirectives & Filters

Page 15: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

MVC ARCHITECTURE

View(template)

ControllerModel

Two-waybinding

<html></html>

Update

Compile Interact

Page 16: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

EXPLORE THE CODE

View + ModelController Two-way binding

Page 17: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

HIGHLIGHTS

MVC architectureDirectives & Filters

Page 18: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

DIRECTIVES

are markers on a DOM element (an attribute or an element name)

attach behaviors to that DOM element and/or transform the DOM element (and its children)

Page 19: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

DIRECTIVES

Template

Compiled view

Page 20: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

FILTERS

“format the value of an expression for display to the user”

Page 21: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

EXPLORE THE CODE – A DIRECTIVE

Page 22: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

EXPLORE THE CODE – A FILTER

More examples for directives

Page 23: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

AGENDA

Single-page Web App

AngularJS Highlights

Takeaway

Page 24: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

WEB APP DEVELOPMENT

Approaches: Multi-page vs. Single-page Single-page: another approach for building

web app

Page 25: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

ANGULARJS HIGHLIGHTS

An active framework Follows MVC architecture Builds customized HTML markers (tags and

attributes)

Sorry, I don’t like angularjs

Page 26: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

REFERENCES

Demo app source code: https://github.com/duylam/angularjs-techcamp2014

Demo app url: http://duylam.github.io/angularjs-techcamp2014

Page 27: Building Single-page Web Applications with AngularJS @ TechCamp Sai Gon 2014

THANK YOU

© 2014 KMS Technology