SlideShare a Scribd company logo
Angular JS tutorial
by professionalguru
A brief Introduction :
• What is Angular JS ?
Angular JS is a JavaScript framework. It can be
added to an HTML page with a <script> tag.
Angular JS extends HTML attributes with Directives,
and binds data to HTML with Expressions.
http://professional-guru.com
• 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.
http://professional-guru.com
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
http://professional-guru.com
JQuery :
• Allows for DOM Manipulation
• Does not provide structure to your code
• Does not allow for two way binding
http://professional-guru.com
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
http://professional-guru.com
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>
http://professional-guru.com
MVC:
Model (Data)
View (UI)
Notifies
NotifiesController
(Logic)
NotifiesChanges
http://professional-guru.com
Hello HTML:
<p>Hello World!</p>
http://professional-guru.com
• 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>
http://professional-guru.com
Hello Jquery:
<p id="greeting2"></p>
<script>
$(function(){
$('#greeting2').text('Hello World!');
});
</script>
http://professional-guru.com
Hello AngularJS:
<p ng:init="greeting = 'Hello
World!'">{{greeting}}</p>
http://professional-guru.com
Angular JS Applications:
• Angular JS modules define Angular JS
applications.
• Angular JS controllers control Angular JS
applications.
• The ng-app directive defines the application,
the ng-controller directive defines the controller.
http://professional-guru.com
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
http://professional-guru.com
AngularJS Modules:
• An Angular JS 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.
http://professional-guru.com
Angular JS Directives:
• Angular JS lets you extend HTML with new
attributes called Directives.
• Angular JS has a set of built-in directives which
offers functionality to your applications.
• Angular JS also lets you define your own directives.
http://professional-guru.com
Angular JS Directives:
• Angular JS directives are extended HTML
attributes with the prefix ng-.
• The ng-app directive initializes an Angular JS
application.
• The ng-init directive initializes application data.
• The ng-model directive binds the value of HTML
controls (input, select, textarea) to application data.
http://professional-guru.com
Angular JS 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.
http://professional-guru.com
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.
http://professional-guru.com
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.
http://professional-guru.com

More Related Content

PPTX
ANGULAR JS TRAINING IN PUNE
PDF
Angular JS tutorial
PPTX
Angular js presentation at Datacom
PPTX
Step by Step - AngularJS
PDF
AngularJS: Overview & Key Features
PPTX
AngularJs (1.x) Presentation
PPTX
Introduction to AngularJS
PPTX
Introduction to single page application with angular js
ANGULAR JS TRAINING IN PUNE
Angular JS tutorial
Angular js presentation at Datacom
Step by Step - AngularJS
AngularJS: Overview & Key Features
AngularJs (1.x) Presentation
Introduction to AngularJS
Introduction to single page application with angular js

What's hot (20)

PPTX
Angularjs PPT
PPTX
Introduction to AngularJS Framework
PPTX
Module2
PPTX
Angular JS, A dive to concepts
PPTX
Angular js 1.3 presentation for fed nov 2014
PDF
PPTX
Angular js
PPTX
What's new in Angular 2?
PPTX
Angular JS - Introduction
PPTX
AngularJS intro
PDF
Introduction of angular js
PDF
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
PDF
Angularjs tutorial
PDF
Introduction to Angularjs : kishan kumar
ODP
Introduction to Knockout Js
PPTX
Angular View Encapsulation
PDF
Introduction to AngularJS By Bharat Makwana
PPTX
Learning AngularJS - Complete coverage of AngularJS features and concepts
PPTX
Introduction to Angular JS
Angularjs PPT
Introduction to AngularJS Framework
Module2
Angular JS, A dive to concepts
Angular js 1.3 presentation for fed nov 2014
Angular js
What's new in Angular 2?
Angular JS - Introduction
AngularJS intro
Introduction of angular js
What Is Angular 2 | Angular 2 Tutorial For Beginners | Angular Training | Edu...
Angularjs tutorial
Introduction to Angularjs : kishan kumar
Introduction to Knockout Js
Angular View Encapsulation
Introduction to AngularJS By Bharat Makwana
Learning AngularJS - Complete coverage of AngularJS features and concepts
Introduction to Angular JS
Ad

Similar to Introduction to Angular Js (20)

PDF
Introduction to Angular Js
PPTX
ME vs WEB - AngularJS Fundamentals
PPTX
Angularjs
PPTX
Angular js
PPTX
Angular Javascript Tutorial with command
PDF
AngularJS By Vipin
DOCX
Angular js
DOCX
angularjs_tutorial.docx
PPTX
Kalp Corporate Angular Js Tutorials
PDF
One Weekend With AngularJS
PDF
Wt unit 5 client &amp; server side framework
PPTX
Angular Presentation
PDF
AngularJS Basics
PPT
Angular js
PDF
Angularjs interview questions and answers
PPTX
Angular js
PPTX
Introduction to AngularJS
PPTX
Angular JS training institute in Jaipur
Introduction to Angular Js
ME vs WEB - AngularJS Fundamentals
Angularjs
Angular js
Angular Javascript Tutorial with command
AngularJS By Vipin
Angular js
angularjs_tutorial.docx
Kalp Corporate Angular Js Tutorials
One Weekend With AngularJS
Wt unit 5 client &amp; server side framework
Angular Presentation
AngularJS Basics
Angular js
Angularjs interview questions and answers
Angular js
Introduction to AngularJS
Angular JS training institute in Jaipur
Ad

More from Professional Guru (20)

PPTX
introduction to AWs
PDF
introduction to AWs
PDF
Introduction to JAVA
PDF
Introduction to Java
PDF
Introduction to Big Data
PPT
Introduction to Azure
PDF
introduction to DEVOPS
PDF
Introduction to Azure
PDF
Introduction to Java
PDF
Dev ops concept
PDF
Robotic Process Automation
PDF
Dev ops concept
PDF
Introduction to AWS
PDF
introduction to hadoop
PDF
Introduction to SQL SERVER
PDF
Introduction to Java
PDF
Introduction to Azure
PDF
Introduction to HTML
PDF
Rpa developer resume
PDF
ANDROID DEVELOPMENT DEMO
introduction to AWs
introduction to AWs
Introduction to JAVA
Introduction to Java
Introduction to Big Data
Introduction to Azure
introduction to DEVOPS
Introduction to Azure
Introduction to Java
Dev ops concept
Robotic Process Automation
Dev ops concept
Introduction to AWS
introduction to hadoop
Introduction to SQL SERVER
Introduction to Java
Introduction to Azure
Introduction to HTML
Rpa developer resume
ANDROID DEVELOPMENT DEMO

Recently uploaded (20)

PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Basic Mud Logging Guide for educational purpose
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Institutional Correction lecture only . . .
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Lesson notes of climatology university.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
Cell Structure & Organelles in detailed.
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Renaissance Architecture: A Journey from Faith to Humanism
Microbial diseases, their pathogenesis and prophylaxis
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Anesthesia in Laparoscopic Surgery in India
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Supply Chain Operations Speaking Notes -ICLT Program
Basic Mud Logging Guide for educational purpose
O5-L3 Freight Transport Ops (International) V1.pdf
Institutional Correction lecture only . . .
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Pre independence Education in Inndia.pdf
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Sports Quiz easy sports quiz sports quiz
Lesson notes of climatology university.
Module 4: Burden of Disease Tutorial Slides S2 2025
Cell Structure & Organelles in detailed.

Introduction to Angular Js

  • 1. Angular JS tutorial by professionalguru
  • 2. A brief Introduction : • What is Angular JS ? Angular JS is a JavaScript framework. It can be added to an HTML page with a <script> tag. Angular JS extends HTML attributes with Directives, and binds data to HTML with Expressions. http://professional-guru.com
  • 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. http://professional-guru.com
  • 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 http://professional-guru.com
  • 5. JQuery : • Allows for DOM Manipulation • Does not provide structure to your code • Does not allow for two way binding http://professional-guru.com
  • 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 http://professional-guru.com
  • 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> http://professional-guru.com
  • 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> http://professional-guru.com
  • 11. Hello Jquery: <p id="greeting2"></p> <script> $(function(){ $('#greeting2').text('Hello World!'); }); </script> http://professional-guru.com
  • 12. Hello AngularJS: <p ng:init="greeting = 'Hello World!'">{{greeting}}</p> http://professional-guru.com
  • 13. Angular JS Applications: • Angular JS modules define Angular JS applications. • Angular JS controllers control Angular JS applications. • The ng-app directive defines the application, the ng-controller directive defines the controller. http://professional-guru.com
  • 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 http://professional-guru.com
  • 15. AngularJS Modules: • An Angular JS 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. http://professional-guru.com
  • 16. Angular JS Directives: • Angular JS lets you extend HTML with new attributes called Directives. • Angular JS has a set of built-in directives which offers functionality to your applications. • Angular JS also lets you define your own directives. http://professional-guru.com
  • 17. Angular JS Directives: • Angular JS directives are extended HTML attributes with the prefix ng-. • The ng-app directive initializes an Angular JS application. • The ng-init directive initializes application data. • The ng-model directive binds the value of HTML controls (input, select, textarea) to application data. http://professional-guru.com
  • 18. Angular JS 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. http://professional-guru.com
  • 19. 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. http://professional-guru.com
  • 20. 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. http://professional-guru.com