SlideShare a Scribd company logo
Angular JS v1.4.8
TECH SESSION LapusneanuGabiCostel
Key Features
01 Modules
02
03
Data Binding
Expressions
04Services
05Directives
Controllers
06
function module(name, requires, configFn)essions
name==='hasOwnProperty'
What is a Module?
01
02
04
You can think of a module as a container for the different
parts of your app – controllers, services, filters, directives, etc.
Creation Retrieval
angular.module('myModule', []); angular.module('myModule');
Signature
Basic Module (Steps)
01
Place the script at the
bottom of the page.
02
Place ng-*app to the
root of your application.
*["ng-", "data-ng-", "ng:", "x-ng-"]
03
Create the ng-app
module.
Basic Module (Code)
Angular JS
1 + 2 = 3
Basic Module (Bootstrap)
Asabestpractice,consideraddinganng-strict-didirectiveonthesameelementasng-app
Angular initializes automatically upon DOMContentLoaded event or when the
angular.js script is evaluated if at that time document.readyState is set to 'complete'.
At this point Angular looks for the ng-app directive which designates your application
root.
You should call angular.bootstrap() after you've loaded or defined your modules.
You should not use the ng-app directive when manually
bootstrapping your app.
If window.name contains prefix NG_DEFER_BOOTSTRAP! when angular.bootstrap is
called, the bootstrap process will be paused until angular.resumeBootstrap() is called.
A
M
D
Basic Module (Instance)
Basic Module (Compile)
Signature
Dependency Injection (DI)
The Angular injector subsystem is in charge of creating components, resolving
their dependencies, and providing them to other components as requested.
Dependency
Annotation
1
2
3
$inject Property
Annotation
Inline
Preferred way
Inferred
Implicit
Annotation
Onlyworksifcodeisnotminified/obfuscated(isdisallowedwhen
theinjectorisinstrictmode).
Dependenciesareinjected basedontheordertheyaredeclaredwithin$injectarray.
Data Binding
Data-binding in Angular apps is the automatic synchronization of data
between the model and view components.
The way that Angular implements data-binding lets you treat the model as
the single-source-of-truth in your application.
The view is a projection of the model at all times.
When the model changes, the view reflects the change,
and vice versa..
A binding is denoted by double-curlies {{ }} or by ngBind
directive.
ItispreferabletousengBindinsteadof{{expression}},or ng-cloakwith{{expression}}.ForbetterperformanceyoucanuseOne-TimeBinding::.
Expressions
AngularJS expressions are much like JavaScript expressions.
They can contain literals, operators and variable.
{{expression}}
Angular JS
1 + 2 = {{1 + 2}}
1 + 2 = 3
//expression//
Service
Value/
Constant
Factory Provider
Services
Services are objects whose API is defined by the developer writing the
service.
Directives (specialized objects)
Directives are used to extend HTML.
Directive
Types
E
AC
M
Comment:
<!— directive: my-directive exp -->
Element name (default):
<my-directive></my-directive>
Attribute (default):
<div my-directive="exp"></div>
Class:
<div class="my-directive:exp;“/>
Directive Definition Object
IntheDOMwerefertodirectivesbylower-caseforms, incodewerefertodirectivesbytheircase-sensitivecamelCasenormalized.
ExecutionOrder
Propagation of Events
Time Directive (DEMO)
THANK YOU!

More Related Content

PPTX
Practical AngularJS
PPTX
AngularJS Beginners Workshop
PDF
Advanced Tips & Tricks for using Angular JS
PPTX
Why angular js Framework
PPTX
Introduction to Angularjs
PPTX
Angular js
PPTX
The AngularJS way
PPTX
AngularJS in 60ish Minutes
Practical AngularJS
AngularJS Beginners Workshop
Advanced Tips & Tricks for using Angular JS
Why angular js Framework
Introduction to Angularjs
Angular js
The AngularJS way
AngularJS in 60ish Minutes

What's hot (20)

PPTX
Angularjs Basics
PPTX
Front end development with Angular JS
PPTX
Angular JS - Introduction
PPTX
Angular js
PDF
AngularJS Framework
PPTX
Understanding angular js
PPTX
AngularJS intro
PDF
AngularJS best-practices
KEY
AngularJS for designers and developers
PDF
AngularJS introduction
PPTX
Angular js
ODP
AngularJs Crash Course
PDF
Introduction to AngularJS
PDF
AngularJS - What is it & Why is it awesome ? (with demos)
PPTX
AngularJs presentation
PPTX
Angular js for beginners
PDF
AngularJS Basic Training
PPTX
AngularJs
PPTX
Angular js
PPTX
AngularJS Best Practices
Angularjs Basics
Front end development with Angular JS
Angular JS - Introduction
Angular js
AngularJS Framework
Understanding angular js
AngularJS intro
AngularJS best-practices
AngularJS for designers and developers
AngularJS introduction
Angular js
AngularJs Crash Course
Introduction to AngularJS
AngularJS - What is it & Why is it awesome ? (with demos)
AngularJs presentation
Angular js for beginners
AngularJS Basic Training
AngularJs
Angular js
AngularJS Best Practices
Ad

Viewers also liked (12)

PDF
Modern web applications infrastructure
PPTX
AngularJS - Part 1
PDF
Deep dive into AngularJs for Beginners
PDF
PDF
Deep Dive into AngularJS Javascript Framework
PPTX
Realizzare Single Page Application con Angular2
PPTX
AngularJS: Service, factory & provider
PPTX
Live Demo : Trending Angular JS Featues
PDF
AngularJS 101 - Everything you need to know to get started
PPTX
AngularJS Architecture
PDF
AngularJS application architecture
Modern web applications infrastructure
AngularJS - Part 1
Deep dive into AngularJs for Beginners
Deep Dive into AngularJS Javascript Framework
Realizzare Single Page Application con Angular2
AngularJS: Service, factory & provider
Live Demo : Trending Angular JS Featues
AngularJS 101 - Everything you need to know to get started
AngularJS Architecture
AngularJS application architecture
Ad

Similar to Angular js architecture (v1.4.8) (20)

PPT
introduction to Angularjs basics
PPSX
PPTX
angularJs Workshop
PDF
Introduction to AngularJS
PPTX
Dive into Angular, part 1: Introduction
PPTX
Angular js
PPTX
Angular Presentation
PPTX
Angular js
PPTX
Introduction to AngularJs
PPTX
AngularJs Workshop SDP December 28th 2014
PDF
Dive into AngularJS and directives
PDF
AngularJS in practice
PDF
2013 - Nate Abele Wield AngularJS like a Pro
ODP
Angular js-crash-course
PDF
Ultimate Introduction To AngularJS
PPTX
Introduction to single page application with angular js
PPT
Angular Seminar-js
PPTX
Angular tutorial
PPTX
Intoduction to Angularjs
introduction to Angularjs basics
angularJs Workshop
Introduction to AngularJS
Dive into Angular, part 1: Introduction
Angular js
Angular Presentation
Angular js
Introduction to AngularJs
AngularJs Workshop SDP December 28th 2014
Dive into AngularJS and directives
AngularJS in practice
2013 - Nate Abele Wield AngularJS like a Pro
Angular js-crash-course
Ultimate Introduction To AngularJS
Introduction to single page application with angular js
Angular Seminar-js
Angular tutorial
Intoduction to Angularjs

Recently uploaded (20)

PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Encapsulation theory and applications.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Electronic commerce courselecture one. Pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Big Data Technologies - Introduction.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Network Security Unit 5.pdf for BCA BBA.
PPT
Teaching material agriculture food technology
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Approach and Philosophy of On baking technology
PDF
NewMind AI Monthly Chronicles - July 2025
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Encapsulation theory and applications.pdf
Unlocking AI with Model Context Protocol (MCP)
Electronic commerce courselecture one. Pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Big Data Technologies - Introduction.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
NewMind AI Weekly Chronicles - August'25 Week I
Network Security Unit 5.pdf for BCA BBA.
Teaching material agriculture food technology
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
20250228 LYD VKU AI Blended-Learning.pptx
Review of recent advances in non-invasive hemoglobin estimation
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology
NewMind AI Monthly Chronicles - July 2025
“AI and Expert System Decision Support & Business Intelligence Systems”
How UI/UX Design Impacts User Retention in Mobile Apps.pdf

Angular js architecture (v1.4.8)

  • 1. Angular JS v1.4.8 TECH SESSION LapusneanuGabiCostel
  • 2. Key Features 01 Modules 02 03 Data Binding Expressions 04Services 05Directives Controllers 06
  • 3. function module(name, requires, configFn)essions name==='hasOwnProperty' What is a Module? 01 02 04 You can think of a module as a container for the different parts of your app – controllers, services, filters, directives, etc. Creation Retrieval angular.module('myModule', []); angular.module('myModule'); Signature
  • 4. Basic Module (Steps) 01 Place the script at the bottom of the page. 02 Place ng-*app to the root of your application. *["ng-", "data-ng-", "ng:", "x-ng-"] 03 Create the ng-app module.
  • 6. Basic Module (Bootstrap) Asabestpractice,consideraddinganng-strict-didirectiveonthesameelementasng-app Angular initializes automatically upon DOMContentLoaded event or when the angular.js script is evaluated if at that time document.readyState is set to 'complete'. At this point Angular looks for the ng-app directive which designates your application root. You should call angular.bootstrap() after you've loaded or defined your modules. You should not use the ng-app directive when manually bootstrapping your app. If window.name contains prefix NG_DEFER_BOOTSTRAP! when angular.bootstrap is called, the bootstrap process will be paused until angular.resumeBootstrap() is called. A M D
  • 9. Dependency Injection (DI) The Angular injector subsystem is in charge of creating components, resolving their dependencies, and providing them to other components as requested. Dependency Annotation 1 2 3 $inject Property Annotation Inline Preferred way Inferred Implicit Annotation Onlyworksifcodeisnotminified/obfuscated(isdisallowedwhen theinjectorisinstrictmode). Dependenciesareinjected basedontheordertheyaredeclaredwithin$injectarray.
  • 10. Data Binding Data-binding in Angular apps is the automatic synchronization of data between the model and view components. The way that Angular implements data-binding lets you treat the model as the single-source-of-truth in your application. The view is a projection of the model at all times. When the model changes, the view reflects the change, and vice versa.. A binding is denoted by double-curlies {{ }} or by ngBind directive. ItispreferabletousengBindinsteadof{{expression}},or ng-cloakwith{{expression}}.ForbetterperformanceyoucanuseOne-TimeBinding::.
  • 11. Expressions AngularJS expressions are much like JavaScript expressions. They can contain literals, operators and variable. {{expression}} Angular JS 1 + 2 = {{1 + 2}} 1 + 2 = 3 //expression//
  • 12. Service Value/ Constant Factory Provider Services Services are objects whose API is defined by the developer writing the service.
  • 13. Directives (specialized objects) Directives are used to extend HTML. Directive Types E AC M Comment: <!— directive: my-directive exp --> Element name (default): <my-directive></my-directive> Attribute (default): <div my-directive="exp"></div> Class: <div class="my-directive:exp;“/> Directive Definition Object IntheDOMwerefertodirectivesbylower-caseforms, incodewerefertodirectivesbytheircase-sensitivecamelCasenormalized.