Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
BUILDING SINGLE-PAGE WEB
APPLICATION WITH ANGULARJS
DUY LAM
KMS TECHNOLOGY
MAR 2014
AGENDA

Single-page Web App

AngularJS

Takeaway
ABOUT ME
Software Architect
at KMS Technology
duylam@kms-technology.com
http://vn.linkedin.com/in/duyl
amphuong
OBJECTIVES
 Understand the Single-page approach and its
benefits
 Understand how well AngularJS supports in
building Sin...
AGENDA

Single-page Web App

AngularJS

Takeaway
SINGLE-PAGE WEB APPLICATION
Multi-page web application
IS SPA THE FUTURE OF WEB APP ?
(one of) SPA pitfall: content-heavy sites
Highlight SPA apps
SPA BENEFITS
 Runs faster
 Gives better UX
 Is able to operate offline (thanks to HTML5)
 Uses less network bandwidth
SPA DRAWBACKS
 Site content becomes SEO-unfriendly
 Insecure application code
 Aware navigation browser buttons: Back,
...
NOTABLE FRAMEWORKS

ASP.NET Single Page Application

http://todomvc.com
AGENDA

Single-page Web App

AngularJS

Takeaway
ANGULARJS
Why AngularJS
AngularJS concepts
Dependency Injection & “recipe” in Injector
service
Directives & Filters
WHY ANGULARJS
 First release v0.9.0 on Oct, 2010
 Maintained by Google and community
 Active development: 03 new releas...
DEMO
ANGULARJS
Why AngularJS
AngularJS concepts
Dependency Injection & “recipe” in Injector
service
Directives & Filters
HELLO WORLD
MVC ARCHITECTURE

View

link

Route

(template)

Compile
Two-way
binding

Model

link

<html>
</html>

Update

Interact

C...
EXPLORE THE CODE
 Initialize AngularJS
 Controllers, Views and Routes
 Two-way binding in Model and
View
 Interaction ...
ANGULARJS
Why AngularJS
AngularJS concepts
Dependency Injection & “recipe” in Injector
service
Directives & Filters
USE (INJECT) BUILT-IN SERVICES
 Use HTTP and Cookie
built-in services
DEPENDENCY INJECTION IN
NUTSHELL
Dependency is handed
to the component

AngularJS Injector
service
ANGULARJS INJECTOR SERVICE
Injector is responsible for creating two types of
objects:
 User-defined Objects:
– We registe...
INJECT DEPENDENCY IN ANGULARJS
Elements to have dependencies:
- Controller, Directive, Filter and
Animation
- Factory, Ser...
EXPLORE THE CODE
Register a recipe
Service vs. Factory
ANGULARJS
Why AngularJS
AngularJS concepts
Dependency Injection & “recipe” in Injector
service
Directives & Filters
DIRECTIVES
are markers on a DOM element (an attribute or an
element name)
attach behaviors to that DOM element and/or
tr...
DIRECTIVES

Template

Compiled view
FILTERS
 “format the value of an expression for display
to the user”
EXPLORE THE CODE
 Implement directives
 Implement filters
AGENDA

Single-page Web App

AngularJS

Takeaway
WEB APP DEVELOPMENT
 Approaches: Multi-page vs. Single-page
 Highlight Single-page benefits:
 Runs faster
 Has better ...
KILLER ANGULARJS FEATURES
 MVC architecture
 Dependency Injection
 Customized HTML markers (tags and
attributes)
REFERENCES
 Source code of demo app:
https://github.com/kms-technology/angularjs
 Demo app url:
http://kms-technology.gi...
THANK YOU

© 2014 KMS Technology
Upcoming SlideShare
Loading in …5
×

Building Single-page Web Applications with AngularJS

14,028 views

Published on

In recent years, a modern approach for building client-centric applications, Single-Page Web Applications, has become well-known in our developer community. As a result, there are several new frameworks that have made their way to the professional developer’s landscape.

AngularJS is a new framework that radically changes the way developers build a web application. It is one of the most ideal alternatives that offers a powerful foundation to build your web application. This slides is dedicated to developers who want to learn the best practices in single-page approaches and how to apply them with AngularJS.

Published in: Technology
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hi there! I just wanted to share a list of sites that helped me a lot during my studies: .................................................................................................................................... www.EssayWrite.best - Write an essay .................................................................................................................................... www.LitReview.xyz - Summary of books .................................................................................................................................... www.Coursework.best - Online coursework .................................................................................................................................... www.Dissertations.me - proquest dissertations .................................................................................................................................... www.ReMovie.club - Movies reviews .................................................................................................................................... www.WebSlides.vip - Best powerpoint presentations .................................................................................................................................... www.WritePaper.info - Write a research paper .................................................................................................................................... www.EddyHelp.com - Homework help online .................................................................................................................................... www.MyResumeHelp.net - Professional resume writing service .................................................................................................................................. www.HelpWriting.net - Help with writing any papers ......................................................................................................................................... Save so as not to lose
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Very nice tips on this. In case you need help on any kind of academic writing visit our website ⇒ www.HelpWriting.net ⇐ and place your order
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating direct: ❤❤❤ http://bit.ly/2F7hN3u ❤❤❤
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Sex in your area is here: ❶❶❶ http://bit.ly/2F7hN3u ❶❶❶
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Building Single-page Web Applications with AngularJS

  1. 1. BUILDING SINGLE-PAGE WEB APPLICATION WITH ANGULARJS DUY LAM KMS TECHNOLOGY MAR 2014
  2. 2. AGENDA Single-page Web App AngularJS Takeaway
  3. 3. ABOUT ME Software Architect at KMS Technology duylam@kms-technology.com http://vn.linkedin.com/in/duyl amphuong
  4. 4. OBJECTIVES  Understand the Single-page approach and its benefits  Understand how well AngularJS supports in building Single-page App
  5. 5. AGENDA Single-page Web App AngularJS Takeaway
  6. 6. SINGLE-PAGE WEB APPLICATION Multi-page web application
  7. 7. IS SPA THE FUTURE OF WEB APP ? (one of) SPA pitfall: content-heavy sites Highlight SPA apps
  8. 8. SPA BENEFITS  Runs faster  Gives better UX  Is able to operate offline (thanks to HTML5)  Uses less network bandwidth
  9. 9. SPA DRAWBACKS  Site content becomes SEO-unfriendly  Insecure application code  Aware navigation browser buttons: Back, Forward and Reload  Run well in browsers compatible with HTML5 History API
  10. 10. NOTABLE FRAMEWORKS ASP.NET Single Page Application http://todomvc.com
  11. 11. AGENDA Single-page Web App AngularJS Takeaway
  12. 12. ANGULARJS Why AngularJS AngularJS concepts Dependency Injection & “recipe” in Injector service Directives & Filters
  13. 13. WHY ANGULARJS  First release v0.9.0 on Oct, 2010  Maintained by Google and community  Active development: 03 new releases per month  MIT license (like jQuery)  (shameless ad -:) Many killer features
  14. 14. DEMO
  15. 15. ANGULARJS Why AngularJS AngularJS concepts Dependency Injection & “recipe” in Injector service Directives & Filters
  16. 16. HELLO WORLD
  17. 17. MVC ARCHITECTURE View link Route (template) Compile Two-way binding Model link <html> </html> Update Interact Controller
  18. 18. EXPLORE THE CODE  Initialize AngularJS  Controllers, Views and Routes  Two-way binding in Model and View  Interaction between View and Controller
  19. 19. ANGULARJS Why AngularJS AngularJS concepts Dependency Injection & “recipe” in Injector service Directives & Filters
  20. 20. USE (INJECT) BUILT-IN SERVICES  Use HTTP and Cookie built-in services
  21. 21. DEPENDENCY INJECTION IN NUTSHELL Dependency is handed to the component AngularJS Injector service
  22. 22. ANGULARJS INJECTOR SERVICE Injector is responsible for creating two types of objects:  User-defined Objects: – We register a “recipe” to instruct Injector in how to create objects – Recipe types: Value, Factory, Service, Provider and Constant  Specialized Objects: Controllers, Directives, Filters and Animations
  23. 23. INJECT DEPENDENCY IN ANGULARJS Elements to have dependencies: - Controller, Directive, Filter and Animation - Factory, Service and Provider Elements can be injected (recipe): Service, Provider, Value, Factory and Constant
  24. 24. EXPLORE THE CODE Register a recipe Service vs. Factory
  25. 25. ANGULARJS Why AngularJS AngularJS concepts Dependency Injection & “recipe” in Injector service Directives & Filters
  26. 26. 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)
  27. 27. DIRECTIVES Template Compiled view
  28. 28. FILTERS  “format the value of an expression for display to the user”
  29. 29. EXPLORE THE CODE  Implement directives  Implement filters
  30. 30. AGENDA Single-page Web App AngularJS Takeaway
  31. 31. WEB APP DEVELOPMENT  Approaches: Multi-page vs. Single-page  Highlight Single-page benefits:  Runs faster  Has better UX  Single-page drawbacks:  SEO-unfriendly  Insecure application code
  32. 32. KILLER ANGULARJS FEATURES  MVC architecture  Dependency Injection  Customized HTML markers (tags and attributes)
  33. 33. REFERENCES  Source code of demo app: https://github.com/kms-technology/angularjs  Demo app url: http://kms-technology.github.io/angularjs/
  34. 34. THANK YOU © 2014 KMS Technology

×