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)

PPTX
AngularJS is awesome
PPTX
AngularJs (1.x) Presentation
PPTX
Angular JS, A dive to concepts
PPTX
Angular JS - Introduction
PPTX
Learning AngularJS - Complete coverage of AngularJS features and concepts
PDF
CraftCamp for Students - Introduction to AngularJS
PDF
End to-End SPA Development Using ASP.NET and AngularJS
PPTX
What are the key distinctions between Angular and AngularJS?
PPTX
Intoduction to Angularjs
PPTX
Angular 9
PPT
Angularjs for kolkata drupal meetup
PPTX
Angular js firebase-preso
PPTX
Angular js
PPTX
JavaScript MVC Frameworks: Backbone, Ember and Angular JS
PPTX
Angular js 1.3 basic tutorial
PPTX
Angular js 1.3 presentation for fed nov 2014
PPTX
Introduction to AngularJS
PPTX
Tech io spa_angularjs_20130814_v0.9.5
AngularJS is awesome
AngularJs (1.x) Presentation
Angular JS, A dive to concepts
Angular JS - Introduction
Learning AngularJS - Complete coverage of AngularJS features and concepts
CraftCamp for Students - Introduction to AngularJS
End to-End SPA Development Using ASP.NET and AngularJS
What are the key distinctions between Angular and AngularJS?
Intoduction to Angularjs
Angular 9
Angularjs for kolkata drupal meetup
Angular js firebase-preso
Angular js
JavaScript MVC Frameworks: Backbone, Ember and Angular JS
Angular js 1.3 basic tutorial
Angular js 1.3 presentation for fed nov 2014
Introduction to AngularJS
Tech io spa_angularjs_20130814_v0.9.5
Ad

Recently uploaded (20)

PPTX
Transform Your Business with a Software ERP System
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Presentation of Computer CLASS 2 .pptx
PDF
top salesforce developer skills in 2025.pdf
PDF
Become an Agentblazer Champion Challenge Kickoff
PPTX
Online Work Permit System for Fast Permit Processing
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
medical staffing services at VALiNTRY
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PDF
Build Multi-agent using Agent Development Kit
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
The Role of Automation and AI in EHS Management for Data Centers.pdf
PDF
System and Network Administration Chapter 2
PDF
2025 Textile ERP Trends: SAP, Odoo & Oracle
PPT
Introduction Database Management System for Course Database
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...
Transform Your Business with a Software ERP System
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Presentation of Computer CLASS 2 .pptx
top salesforce developer skills in 2025.pdf
Become an Agentblazer Champion Challenge Kickoff
Online Work Permit System for Fast Permit Processing
How to Choose the Right IT Partner for Your Business in Malaysia
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
medical staffing services at VALiNTRY
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
ManageIQ - Sprint 268 Review - Slide Deck
Build Multi-agent using Agent Development Kit
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
ISO 45001 Occupational Health and Safety Management System
The Role of Automation and AI in EHS Management for Data Centers.pdf
System and Network Administration Chapter 2
2025 Textile ERP Trends: SAP, Odoo & Oracle
Introduction Database Management System for Course Database
VVF-Customer-Presentation2025-Ver1.9.pptx
Multi-factor Authentication (MFA) requirement for Microsoft 365 Admin Center_...

Angular patterns

  • 1. PREM KUMAR M Email: [email protected] 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