SlideShare a Scribd company logo
Angular JS
A brief Introduction :
• What is Angular JS ?
AngularJS is a JavaScript framework. It can be
added to an HTML page with a <script> tag.
AngularJS extends HTML attributes with Directives,
and binds data to HTML with Expressions.
• Why Angular JS ?
Other frameworks deal with HTML’s
shortcomings by either abstracting away
HTML, CSS, and/or JavaScript or by providing
an imperative way for manipulating the DOM.
Neither of these address the root problem that
HTML was not designed for dynamic views.
1. Structure, Quality and Organization
2. Lightweight ( < 36KB compressed and minified)
3. Free
4. Separation of concern
5. Modularity
6. Extensibility & Maintainability
7. Reusable Components
jQuery :
• Allows for DOM Manipulation
• Does not provide structure to your
code
• Does not allow for two way binding
Features of AngularJS:
• Two-way Data Binding – Model as single source
of truth
• Directives – Extend HTML
• MVC
• Dependency Injection
• Testing
• Deep Linking (Map URL to route Definition)
• Server-Side Communication
Data Binding:
<html ng-app>
<head>
<script src='angular.js'></script>
</head>
<body>
<input ng-model='user.name'>
<div ng-show='user.name'>Hi
{{user.name}}</div>
</body>
</html>
MVC
Model (Data)
View (UI)
Notifies
NotifiesController
(Logic)
NotifiesNotifies
• Hello HTML:
<p>Hello World!</p>
• Hello Javascript:
<p id="greeting1"></p>
<script>
var isIE = document.attachEvent;
var addListener = isIE
? function(e, t, fn) {
e.attachEvent('on' + t, fn);}
: function(e, t, fn) {
e.addEventListener(t, fn, false);};
addListener(document, 'load', function(){
var greeting = document.getElementById('greeting1');
if (isIE) {
greeting.innerText = 'Hello World!';
} else {
greeting.textContent = 'Hello World!';
}
});
</script>
• Hello Jquery:
<p id="greeting2"></p>
<script>
$(function(){
$('#greeting2').text('Hello World!');
});
</script>
• Hello AngularJS:
<p ng:init="greeting = 'Hello
World!'">{{greeting}}</p>
•AngularJS Applications:
• AngularJS modules define AngularJS applications.
• AngularJS controllers control AngularJS
applications.
• The ng-app directive defines the application,
the ng-controller directive defines the controller.
•Angular JS Expressions:
• Angular JS expressions can be written inside double
braces: {{ expression }}.
• Angular JS expressions can also be written inside a
directive: ng-bind="expression".
• Angular JS will resolve the expression, and return the
result exactly where the expression is written.
AngularJS Modules:
•An AngularJS module defines an application.
•The module is a container for the different parts of an
application.
•The module is a container for the application
controllers.
•Controllers always belong to a module.
AngularJS Directives:
• AngularJS lets you extend HTML with new
attributes called Directives.
• AngularJS has a set of built-in directives which
offers functionality to your applications.
• AngularJS also lets you define your own directives.
Angular JS Directives:
Angular JS directives are extended HTML attributes
with the prefix ng-.
The ng-app directive initializes an AngularJS
application.
The ng-init directive initializes application data.
The ng-model directive binds the value of HTML
controls (input, select, textarea) to application data.
AngularJS Controllers:
• Angular JS controllers control the data of Angular
JS applications.
• Angular JS controllers are regular JavaScript
Objects.
• Angular JS applications are controlled by
controllers.
• The ng-controller directive defines the
application controller.
• A controller is a JavaScript Object, created by
a standard JavaScript object constructor.
AngularJS Filters:
AngularJS provides filters to transform data:
•currency Format a number to a currency format.
•date Format a date to a specified format.
•filter Select a subset of items from an array.
•json Format an object to a JSON string.
•limitTo Limits an array/string, into a specified number of
elements/characters.
•lowercase Format a string to lower case.
•number Format a number to a string.
•orderBy Orders an array by an expression.
Angular JS Services:
•In Angular JS you can make your own service, or
use one of the many built-in services.
•What is a Service?
•In Angular JS, a service is a function, or object,
that is available for, and limited to, your Angular
JS application.
•Angular JS has about 30 built-in services. One of
them is the $location service.
Angular JS Global API:
• The Angular JS Global API is a set of global
JavaScript functions for performing common tasks
like:
• Comparing objects
• Iterating objects
• Converting data
• The Global API functions are accessed using the
angular object.

More Related Content

PDF
Angular JS tutorial
PDF
Introduction to Angular Js
PPTX
Angular js presentation at Datacom
PPTX
Angular js 1.3 basic tutorial
PPTX
Angular js for beginners
PPTX
Step by Step - AngularJS
PPTX
AngularJs (1.x) Presentation
PPTX
Introduction to AngularJS
Angular JS tutorial
Introduction to Angular Js
Angular js presentation at Datacom
Angular js 1.3 basic tutorial
Angular js for beginners
Step by Step - AngularJS
AngularJs (1.x) Presentation
Introduction to AngularJS

What's hot (20)

PPTX
Getting Started with Angular JS
PPTX
angularJS Practicle Explanation
PPTX
Introduction to single page application with angular js
PPTX
Angular js 1.0-fundamentals
PPTX
Angular introduction basic
PDF
Introduction of angular js
PPTX
Angularjs PPT
PPTX
Angular JS, steal the idea
PPTX
Angular js PPT
PPTX
Angular js 1.3 presentation for fed nov 2014
PPTX
Introduction to Angular JS
PDF
AngularJS 101 - Everything you need to know to get started
PPTX
Single page application 03
PDF
PPTX
Introduction to AngularJS Framework
PPTX
Angular Js Basics
PPTX
Angular JS
DOCX
AngularJS
PPTX
Valentine with Angular js - Introduction
Getting Started with Angular JS
angularJS Practicle Explanation
Introduction to single page application with angular js
Angular js 1.0-fundamentals
Angular introduction basic
Introduction of angular js
Angularjs PPT
Angular JS, steal the idea
Angular js PPT
Angular js 1.3 presentation for fed nov 2014
Introduction to Angular JS
AngularJS 101 - Everything you need to know to get started
Single page application 03
Introduction to AngularJS Framework
Angular Js Basics
Angular JS
AngularJS
Valentine with Angular js - Introduction
Ad

Similar to ANGULAR JS TRAINING IN PUNE (20)

PPTX
Angularjs
PPTX
Kalp Corporate Angular Js Tutorials
PDF
AngularJS By Vipin
PPTX
AngularJS is awesome
PPTX
Angular Javascript Tutorial with command
PPTX
Angularjs basic part01
PDF
Wt unit 5 client &amp; server side framework
DOCX
angularjs_tutorial.docx
PPTX
AngularJS Introduction, how to run Angular
PPTX
AngularJs Basic Concept
PDF
Introduction to AngularJS By Bharat Makwana
PPTX
Intoduction to Angularjs
PPTX
Angular JS training institute in Jaipur
PPTX
Angular js
PPTX
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
PPT
Coffee@DBG - Exploring Angular JS
PPTX
ME vs WEB - AngularJS Fundamentals
PDF
One Weekend With AngularJS
Angularjs
Kalp Corporate Angular Js Tutorials
AngularJS By Vipin
AngularJS is awesome
Angular Javascript Tutorial with command
Angularjs basic part01
Wt unit 5 client &amp; server side framework
angularjs_tutorial.docx
AngularJS Introduction, how to run Angular
AngularJs Basic Concept
Introduction to AngularJS By Bharat Makwana
Intoduction to Angularjs
Angular JS training institute in Jaipur
Angular js
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
Coffee@DBG - Exploring Angular JS
ME vs WEB - AngularJS Fundamentals
One Weekend With AngularJS
Ad

More from cncwebworld (7)

PDF
Php framework
PPTX
Introduction to android app development
PPTX
Php Framework
PPTX
Html, css and jquery introduction
PPTX
.Net the begining
PDF
Best programming language to learn in 2018
PPTX
Best tech jobs in present scenario
Php framework
Introduction to android app development
Php Framework
Html, css and jquery introduction
.Net the begining
Best programming language to learn in 2018
Best tech jobs in present scenario

Recently uploaded (20)

PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
01-Introduction-to-Information-Management.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
Complications of Minimal Access Surgery at WLH
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Classroom Observation Tools for Teachers
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Business Ethics Teaching Materials for college
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
PPH.pptx obstetrics and gynecology in nursing
Renaissance Architecture: A Journey from Faith to Humanism
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
01-Introduction-to-Information-Management.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
RMMM.pdf make it easy to upload and study
VCE English Exam - Section C Student Revision Booklet
Final Presentation General Medicine 03-08-2024.pptx
O7-L3 Supply Chain Operations - ICLT Program
Week 4 Term 3 Study Techniques revisited.pptx
Complications of Minimal Access Surgery at WLH
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Classroom Observation Tools for Teachers
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Microbial disease of the cardiovascular and lymphatic systems
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Business Ethics Teaching Materials for college
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Microbial diseases, their pathogenesis and prophylaxis
PPH.pptx obstetrics and gynecology in nursing

ANGULAR JS TRAINING IN PUNE

  • 2. A brief Introduction : • What is Angular JS ? AngularJS is a JavaScript framework. It can be added to an HTML page with a <script> tag. AngularJS extends HTML attributes with Directives, and binds data to HTML with Expressions.
  • 3. • Why Angular JS ? Other frameworks deal with HTML’s shortcomings by either abstracting away HTML, CSS, and/or JavaScript or by providing an imperative way for manipulating the DOM. Neither of these address the root problem that HTML was not designed for dynamic views.
  • 4. 1. Structure, Quality and Organization 2. Lightweight ( < 36KB compressed and minified) 3. Free 4. Separation of concern 5. Modularity 6. Extensibility & Maintainability 7. Reusable Components
  • 5. jQuery : • Allows for DOM Manipulation • Does not provide structure to your code • Does not allow for two way binding
  • 6. Features of AngularJS: • Two-way Data Binding – Model as single source of truth • Directives – Extend HTML • MVC • Dependency Injection • Testing • Deep Linking (Map URL to route Definition) • Server-Side Communication
  • 7. Data Binding: <html ng-app> <head> <script src='angular.js'></script> </head> <body> <input ng-model='user.name'> <div ng-show='user.name'>Hi {{user.name}}</div> </body> </html>
  • 10. • Hello Javascript: <p id="greeting1"></p> <script> var isIE = document.attachEvent; var addListener = isIE ? function(e, t, fn) { e.attachEvent('on' + t, fn);} : function(e, t, fn) { e.addEventListener(t, fn, false);}; addListener(document, 'load', function(){ var greeting = document.getElementById('greeting1'); if (isIE) { greeting.innerText = 'Hello World!'; } else { greeting.textContent = 'Hello World!'; } }); </script>
  • 11. • Hello Jquery: <p id="greeting2"></p> <script> $(function(){ $('#greeting2').text('Hello World!'); }); </script>
  • 12. • Hello AngularJS: <p ng:init="greeting = 'Hello World!'">{{greeting}}</p>
  • 13. •AngularJS Applications: • AngularJS modules define AngularJS applications. • AngularJS controllers control AngularJS applications. • The ng-app directive defines the application, the ng-controller directive defines the controller.
  • 14. •Angular JS Expressions: • Angular JS expressions can be written inside double braces: {{ expression }}. • Angular JS expressions can also be written inside a directive: ng-bind="expression". • Angular JS will resolve the expression, and return the result exactly where the expression is written.
  • 15. AngularJS Modules: •An AngularJS module defines an application. •The module is a container for the different parts of an application. •The module is a container for the application controllers. •Controllers always belong to a module.
  • 16. AngularJS Directives: • AngularJS lets you extend HTML with new attributes called Directives. • AngularJS has a set of built-in directives which offers functionality to your applications. • AngularJS also lets you define your own directives.
  • 17. Angular JS Directives: Angular JS directives are extended HTML attributes with the prefix ng-. The ng-app directive initializes an AngularJS application. The ng-init directive initializes application data. The ng-model directive binds the value of HTML controls (input, select, textarea) to application data.
  • 18. AngularJS Controllers: • Angular JS controllers control the data of Angular JS applications. • Angular JS controllers are regular JavaScript Objects. • Angular JS applications are controlled by controllers. • The ng-controller directive defines the application controller. • A controller is a JavaScript Object, created by a standard JavaScript object constructor.
  • 19. AngularJS Filters: AngularJS provides filters to transform data: •currency Format a number to a currency format. •date Format a date to a specified format. •filter Select a subset of items from an array. •json Format an object to a JSON string. •limitTo Limits an array/string, into a specified number of elements/characters. •lowercase Format a string to lower case. •number Format a number to a string. •orderBy Orders an array by an expression.
  • 20. Angular JS Services: •In Angular JS you can make your own service, or use one of the many built-in services. •What is a Service? •In Angular JS, a service is a function, or object, that is available for, and limited to, your Angular JS application. •Angular JS has about 30 built-in services. One of them is the $location service.
  • 21. Angular JS Global API: • The Angular JS Global API is a set of global JavaScript functions for performing common tasks like: • Comparing objects • Iterating objects • Converting data • The Global API functions are accessed using the angular object.