SlideShare a Scribd company logo
2
Most read
5
Most read
6
Most read
Tutorial
AngularJS is a very powerful JavaScript Framework. It is used in Single Page
Application (SPA) projects. It extends HTML DOM with additional attributes and
makes it more responsive to user actions. AngularJS is open source, completely free,
and used by thousands of developers around the world. It is licensed under the
Apache license version 2.0.
AngularJS is a very powerful JavaScript Framework. It is used in Single
Page Application (SPA) projects. It extends HTML DOM with additional
attributes and makes it more responsive to user actions. AngularJS is
open source, completely free, and used by thousands of developers
around the world. It is licensed under the Apache license version 2.0.
AngularJS is a very powerful JavaScript Framework. It is used in Single Page
Application (SPA) projects. It extends HTML DOM with additional attributes and
makes it more responsive to user actions. AngularJS is open source, completely free,
and used by thousands of developers around the world. It is licensed under the
Apache license version 2.0.
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.
Data-binding ScopeData-binding Scope
Controller
Services
FiltersDirectivesTemplates
Routing
Factories
Modules
FeaturesMajor Parts
This directive defines and links an
AngularJS application to HTML.
ng-app ng-model ng-bind
This directive defines
and links an AngularJS
application to HTML.
This directive binds the
values of AngularJS
application data to HTML
input controls.
This directive binds the
AngularJS Application
data to HTML tags.
<!DOCTYPE html>
<html>
<script
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/a
ngular.min.js"></script>
<body>
<div ng-app="myApp" ng-controller="myCtrl">
{{ firstName + " " + lastName }}
</div>
<script>
var app = angular.module("myApp", []);
app.controller("myCtrl", function($scope) {
$scope.firstName = "John";
$scope.lastName = "Doe";
});
</script>
</body>
</html>
Output
John Doe
Example
Angular JS
Expression
About
 AngularJS expressions can be written inside double braces:
{{Expression}}
 AngularJS expressions can also be written inside a directive: ng-
bind=“expression”
 AngularJS will resolve the expression, and return the result exactly
where the expression is written.
Types
 AngularJS Numbers
 AngularJS Strings
 AngularJS Objects
 AngularJS Arrays
Contain literal, operator,variable.Contain literal, operator, variable. Also Contain literal, operator, variable.
Written inside HTML tag Not Written inside HTML tag
Not support loop, exception. Support loop, exception.
Support filters. Not support filters.
Difference b/w expression
Angular JS
Modules
An AngularJS module defines an application.
The module is container for the different parts of application
The module is a container for the application controllers.
Controllers always belong to a module.
Angular JS
Model
The ng-model directive binds the value of HTML controls
(input, select, textarea) to application data.
With the ng-model directive you can bind the value of an
input field to a variable created in AngularJS.
The binding goes both ways. If the user changes the value
inside the input field, the AngularJS property will also
change its value:
The ng-model directive can provide type validation for
application data (number, e-mail, required).
The ng-model directive can provide status for application
data (invalid, dirty, touched, error)
FeaturesFeatures
This directive defines and links an
AngularJS application to HTML.
RIA MVC Free
AngularJS is a powerful
JavaScript based
development framework to
create RICH Internet
Application(RIA).
AngularJS provides
developers options to write
client side application (using
JavaScript) in a clean
MVC(Model View Controller)
way.
AngularJS is open source,
completely free, and used
by thousands of developers
around the world. It is
licensed under the Apache
License version 2.0.
AngularJS provides capability to
create Single Page Application in a
very clean and maintainable way.
AngularJS provides data binding
capability to HTML thus giving user a
rich and responsive experience
AngularJS code is unit testable and
AngularJS provides reusable
components.
AngularJS uses dependency
injection and make use of
separation of concerns.
With AngularJS, developer
write less code and get more
functionality.
In AngularJS, views are pure
html pages, and controllers
written in JavaScript do the
business processing.
Advantage
FeaturesDisadvantage
This directive defines and links an AngularJS
application to HTML.
Not Secure Not degradable
Being JavaScript only framework,
application written in AngularJS are not
safe. Server side authentication and
authorization is must to keep an
application secure.
If your application user disables
JavaScript then user will just see the
basic page and nothing more.
Reference From
Thank You

More Related Content

PDF
Angular - Chapter 7 - HTTP Services
PPT
Angular 8
PPT
Angular Introduction By Surekha Gadkari
PPTX
Angular overview
PPTX
Angular modules in depth
PPTX
Angular Data Binding
PDF
Angular components
PDF
ES6 presentation
Angular - Chapter 7 - HTTP Services
Angular 8
Angular Introduction By Surekha Gadkari
Angular overview
Angular modules in depth
Angular Data Binding
Angular components
ES6 presentation

What's hot (20)

PPTX
Angular 14.pptx
PDF
Angular - Chapter 3 - Components
PPTX
Introduction to angular with a simple but complete project
PPTX
Angular 2.0 forms
PDF
Angular data binding
PDF
Introduzione ad angular 7/8
PDF
Angular
PPTX
Angular 9
PDF
Angular - Chapter 1 - Introduction
PDF
Angular Advanced Routing
PDF
TypeScript
PPTX
Intro to React
PDF
Angular 10 course_content
PDF
Why Vue.js?
PPT
JavaScript Tutorial
PDF
Spring boot introduction
PPTX
Unit 1 - TypeScript & Introduction to Angular CLI.pptx
PPTX
PPTX
Angular 5 presentation for beginners
PPT
Java Script ppt
Angular 14.pptx
Angular - Chapter 3 - Components
Introduction to angular with a simple but complete project
Angular 2.0 forms
Angular data binding
Introduzione ad angular 7/8
Angular
Angular 9
Angular - Chapter 1 - Introduction
Angular Advanced Routing
TypeScript
Intro to React
Angular 10 course_content
Why Vue.js?
JavaScript Tutorial
Spring boot introduction
Unit 1 - TypeScript & Introduction to Angular CLI.pptx
Angular 5 presentation for beginners
Java Script ppt
Ad

Similar to Angular tutorial (20)

PDF
Wt unit 5 client &amp; server side framework
PPTX
Angularjs
PPTX
Intoduction to Angularjs
PDF
One Weekend With AngularJS
PPTX
Angular Js Get Started - Complete Course
PPTX
AngularJs Basic Concept
PDF
An introduction to AngularJS
PPTX
Angularjs basic part01
PPTX
AngularJS is awesome
PDF
Dive into AngularJS and directives
PPTX
Angular js anupama
PPTX
AngularJS Introduction, how to run Angular
PPTX
Angular js
PDF
AngularJS By Vipin
PDF
Introduction to Angularjs : kishan kumar
PPTX
Introduction to Angularjs
PPTX
Basics of AngularJS
PPTX
Angular JS training institute in Jaipur
PPTX
ME vs WEB - AngularJS Fundamentals
Wt unit 5 client &amp; server side framework
Angularjs
Intoduction to Angularjs
One Weekend With AngularJS
Angular Js Get Started - Complete Course
AngularJs Basic Concept
An introduction to AngularJS
Angularjs basic part01
AngularJS is awesome
Dive into AngularJS and directives
Angular js anupama
AngularJS Introduction, how to run Angular
Angular js
AngularJS By Vipin
Introduction to Angularjs : kishan kumar
Introduction to Angularjs
Basics of AngularJS
Angular JS training institute in Jaipur
ME vs WEB - AngularJS Fundamentals
Ad

Recently uploaded (20)

PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
01-Introduction-to-Information-Management.pdf
PPTX
master seminar digital applications in india
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Insiders guide to clinical Medicine.pdf
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Business Ethics Teaching Materials for college
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Pre independence Education in Inndia.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
01-Introduction-to-Information-Management.pdf
master seminar digital applications in india
O5-L3 Freight Transport Ops (International) V1.pdf
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Microbial disease of the cardiovascular and lymphatic systems
Microbial diseases, their pathogenesis and prophylaxis
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Insiders guide to clinical Medicine.pdf
102 student loan defaulters named and shamed – Is someone you know on the list?
Business Ethics Teaching Materials for college
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Pre independence Education in Inndia.pdf
GDM (1) (1).pptx small presentation for students
human mycosis Human fungal infections are called human mycosis..pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student

Angular tutorial

  • 2. AngularJS is a very powerful JavaScript Framework. It is used in Single Page Application (SPA) projects. It extends HTML DOM with additional attributes and makes it more responsive to user actions. AngularJS is open source, completely free, and used by thousands of developers around the world. It is licensed under the Apache license version 2.0. AngularJS is a very powerful JavaScript Framework. It is used in Single Page Application (SPA) projects. It extends HTML DOM with additional attributes and makes it more responsive to user actions. AngularJS is open source, completely free, and used by thousands of developers around the world. It is licensed under the Apache license version 2.0. AngularJS is a very powerful JavaScript Framework. It is used in Single Page Application (SPA) projects. It extends HTML DOM with additional attributes and makes it more responsive to user actions. AngularJS is open source, completely free, and used by thousands of developers around the world. It is licensed under the Apache license version 2.0. 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.
  • 4. FeaturesMajor Parts This directive defines and links an AngularJS application to HTML. ng-app ng-model ng-bind This directive defines and links an AngularJS application to HTML. This directive binds the values of AngularJS application data to HTML input controls. This directive binds the AngularJS Application data to HTML tags.
  • 5. <!DOCTYPE html> <html> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/a ngular.min.js"></script> <body> <div ng-app="myApp" ng-controller="myCtrl"> {{ firstName + " " + lastName }} </div> <script> var app = angular.module("myApp", []); app.controller("myCtrl", function($scope) { $scope.firstName = "John"; $scope.lastName = "Doe"; }); </script> </body> </html> Output John Doe Example
  • 6. Angular JS Expression About  AngularJS expressions can be written inside double braces: {{Expression}}  AngularJS expressions can also be written inside a directive: ng- bind=“expression”  AngularJS will resolve the expression, and return the result exactly where the expression is written. Types  AngularJS Numbers  AngularJS Strings  AngularJS Objects  AngularJS Arrays
  • 7. Contain literal, operator,variable.Contain literal, operator, variable. Also Contain literal, operator, variable. Written inside HTML tag Not Written inside HTML tag Not support loop, exception. Support loop, exception. Support filters. Not support filters. Difference b/w expression
  • 8. Angular JS Modules An AngularJS module defines an application. The module is container for the different parts of application The module is a container for the application controllers. Controllers always belong to a module.
  • 9. Angular JS Model The ng-model directive binds the value of HTML controls (input, select, textarea) to application data. With the ng-model directive you can bind the value of an input field to a variable created in AngularJS. The binding goes both ways. If the user changes the value inside the input field, the AngularJS property will also change its value: The ng-model directive can provide type validation for application data (number, e-mail, required). The ng-model directive can provide status for application data (invalid, dirty, touched, error)
  • 10. FeaturesFeatures This directive defines and links an AngularJS application to HTML. RIA MVC Free AngularJS is a powerful JavaScript based development framework to create RICH Internet Application(RIA). AngularJS provides developers options to write client side application (using JavaScript) in a clean MVC(Model View Controller) way. AngularJS is open source, completely free, and used by thousands of developers around the world. It is licensed under the Apache License version 2.0.
  • 11. AngularJS provides capability to create Single Page Application in a very clean and maintainable way. AngularJS provides data binding capability to HTML thus giving user a rich and responsive experience AngularJS code is unit testable and AngularJS provides reusable components. AngularJS uses dependency injection and make use of separation of concerns. With AngularJS, developer write less code and get more functionality. In AngularJS, views are pure html pages, and controllers written in JavaScript do the business processing. Advantage
  • 12. FeaturesDisadvantage This directive defines and links an AngularJS application to HTML. Not Secure Not degradable Being JavaScript only framework, application written in AngularJS are not safe. Server side authentication and authorization is must to keep an application secure. If your application user disables JavaScript then user will just see the basic page and nothing more.