SlideShare a Scribd company logo
PREM KUMAR M
Email: mpremkumardpk@gmail.com
Github Link:
https://github.com/prem2k17/angularPatterns
What is AngularJS ?
‱ AngularJS is a JavaScript MVC Framework created by Google.
‱ Focus more on HTML side of web apps.
‱ It deals everything within the browser, making it an ideal
partner with any server technology
‱ Angular supports hundreds of JavaScript components to
integrate.
Advantages
‱ Enhances HTML by attaching directives, custom tags, attributes,
expressions, templates within HTML
‱ Good for Single Page Applications (SPA)
‱ Easy Data binding, Two way data binding
‱ Re-usable Components
‱ Dependency Injection
‱ E2E Testing, Unit testing is easier
Where to use AngularJS ?
‱ Single Page Applications
‱ Dynamic Web Applications
‱ RESTful applications
‱ CRUD based applications
‱ Mobile applications
Tools Required for
development
‱ Eclipse or Visual studio code (Code Editor)
‱ Google Chrome browser (Recommended browser)
‱ NodeJS (For client server) [Optional]
‱ GitHub (For accessing external repositories) [Optional]
‱ NPM, Bower (For managing 3rd party resources) [Optional]
‱ Gulp (Task runner) [Optional]
Framework Architecture
Angular patterns
LIFT Guideline
Why LIFT ?
Provides a consistent structure that scales well, is modular,
and makes it easier to increase developer efficiency by finding
code quickly.
L – Locating our code easy
I – Identify code at glance
F – Flat structure as long as we can
T – Try to stay dry
Application Structure
Folders by Type Folders by Feature
Dependency Injection
The process of injecting dependent functionality into modules at
run time.
Using an "constructor function".
using an "injectable factory method"
Modules
Angular patterns
Scopes and RootScopes
‱ Scopes : Accessible inside only particular controller
‱ RootScopes : Accessible through any controller
Controllers
Controllers are the view handlers. Binds data into view using model
Services
Factories
Services Vs Factory
Directives
‱ Markers on a DOM element (such as arrtibute, element name,
comment or css class) that tells angularJS HTML compiler
($compile) to attach a specific behaviour
‱ It works via event listeners
‱ It also capable to transform the DOM element and its children.
Angular patterns
Filters
‱ Filters format the value of an expression for display to the user
‱ They can be used in view templates, controllers or services.
Constants Vs Values
Angular Events
Dynamic views
UI Routing
‱ UI-Router is a routing framework for AngularJS built by the Angular
Team.
‱ It changes your application views based on state of the
application and not just the route URL.
Sample UI Routing template
API call using Angular Resource
$resource was meant to retrieve data from an endpoint,
manipulate it and send it back
Angular Resource Methods
Angular patterns
Angular patterns

More Related Content

PPTX
AngularJS
PDF
How to Build Dynamic Forms in Angular Directive with a Backend
PPTX
AngularJS = Browser applications on steroids
PPTX
Angularjs Basics
PPTX
Single page application 02
PPTX
Introduction to angular | Concepts and Environment setup
PPTX
Valentine with Angular js - Introduction
PPTX
Single Page Applications in SharePoint with Angular
AngularJS
How to Build Dynamic Forms in Angular Directive with a Backend
AngularJS = Browser applications on steroids
Angularjs Basics
Single page application 02
Introduction to angular | Concepts and Environment setup
Valentine with Angular js - Introduction
Single Page Applications in SharePoint with Angular

What's hot (20)

PPTX
SoCal Code Camp 2011 - ASP.NET MVC 4
PDF
Mastering angular - Dot Net Tricks
PDF
AngularJS Basics
PPTX
Introduction to ASP.NET MVC
PPTX
Introduction to single page application with angular js
PPTX
Mvc framework
PPTX
Angular JS Indtrodution
PDF
Dot net interview questions and asnwers
PDF
Asp.net mvc basic introduction
PPTX
Introduction to Angular JS
PPTX
Angular introduction basic
PPTX
Angularjs - custom directives part 05
PPTX
Angularjs basic part01
PPTX
The Rails Engine That Could
PPTX
Mortal Kombat! ASP.NET MVC vs ASP.NET Webforms – ASP.NET MVC is amazing
PPTX
Mvc summary
PDF
Asp.NETZERO - A Workshop Presentation by Citytech Software
PPTX
Angular js presentation at Datacom
PPTX
4. Introduction to ASP.NET MVC - Part I
PPTX
Module2
SoCal Code Camp 2011 - ASP.NET MVC 4
Mastering angular - Dot Net Tricks
AngularJS Basics
Introduction to ASP.NET MVC
Introduction to single page application with angular js
Mvc framework
Angular JS Indtrodution
Dot net interview questions and asnwers
Asp.net mvc basic introduction
Introduction to Angular JS
Angular introduction basic
Angularjs - custom directives part 05
Angularjs basic part01
The Rails Engine That Could
Mortal Kombat! ASP.NET MVC vs ASP.NET Webforms – ASP.NET MVC is amazing
Mvc summary
Asp.NETZERO - A Workshop Presentation by Citytech Software
Angular js presentation at Datacom
4. Introduction to ASP.NET MVC - Part I
Module2
Ad

Similar to Angular patterns (20)

PDF
AngularJS
PDF
PPTX
Angular js 1.3 basic tutorial
PPTX
Angular js 1.0-fundamentals
PPTX
Intro to AngularJs
PPTX
AngularJS 1.x - your first application (problems and solutions)
PDF
Everything You Need To Know About AngularJS
PPTX
Practical AngularJS
 
PPTX
PDF
AngularJS Workshop
PDF
AngularJS in Production (CTO Forum)
PDF
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
PDF
What are the reasons behind growing popularity of AngularJS.pdf
PPTX
Introduction_to_AngularJS............pptx
DOCX
angularjs_tutorial.docx
PPTX
ME vs WEB - AngularJS Fundamentals
PPTX
Training On Angular Js
ODP
AngularJs Crash Course
PPTX
The AngularJS way
AngularJS
Angular js 1.3 basic tutorial
Angular js 1.0-fundamentals
Intro to AngularJs
AngularJS 1.x - your first application (problems and solutions)
Everything You Need To Know About AngularJS
Practical AngularJS
 
AngularJS Workshop
AngularJS in Production (CTO Forum)
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
What are the reasons behind growing popularity of AngularJS.pdf
Introduction_to_AngularJS............pptx
angularjs_tutorial.docx
ME vs WEB - AngularJS Fundamentals
Training On Angular Js
AngularJs Crash Course
The AngularJS way
Ad

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
L1 - Introduction to python Backend.pptx
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PDF
Odoo Companies in India – Driving Business Transformation.pdf
PPTX
Essential Infomation Tech presentation.pptx
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Introduction to Artificial Intelligence
Internet Downloader Manager (IDM) Crack 6.42 Build 41
L1 - Introduction to python Backend.pptx
Navsoft: AI-Powered Business Solutions & Custom Software Development
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
2025 Textile ERP Trends: SAP, Odoo & Oracle
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Softaken Excel to vCard Converter Software.pdf
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Which alternative to Crystal Reports is best for small or large businesses.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Design an Analysis of Algorithms I-SECS-1021-03
Design an Analysis of Algorithms II-SECS-1021-03
Odoo Companies in India – Driving Business Transformation.pdf
Essential Infomation Tech presentation.pptx
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Introduction to Artificial Intelligence

Angular patterns

  • 1. PREM KUMAR M Email: mpremkumardpk@gmail.com Github Link: https://github.com/prem2k17/angularPatterns
  • 2. What is AngularJS ? ‱ AngularJS is a JavaScript MVC Framework created by Google. ‱ Focus more on HTML side of web apps. ‱ It deals everything within the browser, making it an ideal partner with any server technology ‱ Angular supports hundreds of JavaScript components to integrate.
  • 3. Advantages ‱ Enhances HTML by attaching directives, custom tags, attributes, expressions, templates within HTML ‱ Good for Single Page Applications (SPA) ‱ Easy Data binding, Two way data binding ‱ Re-usable Components ‱ Dependency Injection ‱ E2E Testing, Unit testing is easier
  • 4. Where to use AngularJS ? ‱ Single Page Applications ‱ Dynamic Web Applications ‱ RESTful applications ‱ CRUD based applications ‱ Mobile applications
  • 5. Tools Required for development ‱ Eclipse or Visual studio code (Code Editor) ‱ Google Chrome browser (Recommended browser) ‱ NodeJS (For client server) [Optional] ‱ GitHub (For accessing external repositories) [Optional] ‱ NPM, Bower (For managing 3rd party resources) [Optional] ‱ Gulp (Task runner) [Optional]
  • 8. LIFT Guideline Why LIFT ? Provides a consistent structure that scales well, is modular, and makes it easier to increase developer efficiency by finding code quickly. L – Locating our code easy I – Identify code at glance F – Flat structure as long as we can T – Try to stay dry
  • 9. Application Structure Folders by Type Folders by Feature
  • 10. Dependency Injection The process of injecting dependent functionality into modules at run time. Using an "constructor function". using an "injectable factory method"
  • 13. Scopes and RootScopes ‱ Scopes : Accessible inside only particular controller ‱ RootScopes : Accessible through any controller
  • 14. Controllers Controllers are the view handlers. Binds data into view using model
  • 18. Directives ‱ Markers on a DOM element (such as arrtibute, element name, comment or css class) that tells angularJS HTML compiler ($compile) to attach a specific behaviour ‱ It works via event listeners ‱ It also capable to transform the DOM element and its children.
  • 20. Filters ‱ Filters format the value of an expression for display to the user ‱ They can be used in view templates, controllers or services.
  • 24. UI Routing ‱ UI-Router is a routing framework for AngularJS built by the Angular Team. ‱ It changes your application views based on state of the application and not just the route URL.
  • 25. Sample UI Routing template
  • 26. API call using Angular Resource $resource was meant to retrieve data from an endpoint, manipulate it and send it back