SlideShare a Scribd company logo
A Big Picture of AngularJS By Nitin Pandit
Nitin Pandit
C# Corner Evangelist
Microsoft MVP
Follow Me :
Twitter: @thinkaboutnitin
Facebook: facebook.com/go4pandit
Web: www.nitin-pandit.com
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.
What is AngularJs?
Features:
• 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.
• Application written in AngularJS is cross-browser compliant. AngularJS
automatically handles JavaScript code suitable for each browser.
• 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.
three most important things about AngularJs
Directive Like:
Services Like:
Filters Like:
ng-app, ng-bind, ng-model, ng-init etc.…
$http, $location etc.…
currency , filter , json etc.…
Angular Initialization Process
Dependency Injector
What is $scope?
Scope is a JavaScript object that refers to the application model. It acts as a context for evaluating
Angular expressions. Basically, it acts as the glue between a controller and a view. Scopes are
hierarchical in nature and follow the DOM structure of your AngularJs app
Scope has certain characteristics like:
$watch, $apply and $digest. Angular defines a concept called digest cycle. This cycle can be considered as a loop,
during that Angular checks if there are any changes to all the variables watched by all the $scopes
$watch: It keeps a constant eye on any mutation that occurs inside the model.
$apply: It notifies Angular to update the DOM model after the scope properties are updated.
$digest: It is triggered right after $apply does its job. Its task is to notify all the $watches that the
application model has been updated.
Let us do a hands-on sample to understand it better.
$watch():
$watch(): $watch helps to listen for $scope change. Angular creates a $watch for every binding on the
screen. That includes both ng-model and {{ ... }} (and ng-repeat and others directives).
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/angular.min.js"></script>
<script>
var app = angular.module("app", []);
app.controller("MyCtrl", function ($scope) {
$scope.FName = "Nitin";
$scope.LName = "Pandit";
$scope.$watch("LName",function () {
alert('hey, Last Name has changed!');
});
});
</script>
</head>
<body ng-app="app" ng-controller="MyCtrl">
First Name: <input ng-model="FName"/><br/>
Last Name: <input ng-model="LName" /><br />
<!--<p ng-bind="FName" ng-bind="LName"></p>-->
<p>{{FName+' '+LName}}</p>
</body>
</html>

More Related Content

PPTX
Intro to AngularJS
PPTX
Angularjs on line training
PPTX
Modules in AngularJs
PPTX
Start your journey with angular | Basic Angular
PDF
PPTX
OCTO BOF - How to build Netvibes with AngularJS
PPTX
Dive into Angular, part 1: Introduction
PPTX
Anjular js
Intro to AngularJS
Angularjs on line training
Modules in AngularJs
Start your journey with angular | Basic Angular
OCTO BOF - How to build Netvibes with AngularJS
Dive into Angular, part 1: Introduction
Anjular js

What's hot (20)

PPTX
Dive into Angular, part 2: Architecture
PPTX
Charla taller Ionic + AngularJS Sysmana 2015
PPTX
Dive into Angular, part 5: Experience
PDF
React js vs angularjs
PPTX
Angular overview
PDF
Angular js best practice
PPTX
Micro frontend
PDF
React vs Angular, who wins the competition?
PPTX
Angular JS For Your Business
PPTX
React vs angular what to choose for your app
PPTX
angular-formly presentation
PPTX
Controllers in AngularJs
PPTX
Introduction to Angular js 2.0
PDF
Responsive web design with Angularjs
PPTX
Angular,react,vue
PPTX
Angularjs overview
PPTX
AngularJs Basic Concept
PDF
How to Build Dynamic Forms in Angular Directive with a Backend
PPT
Angular Seminar-js
PDF
Burgas Conf 21.06.2014 - Single page application Angularjs and Nodejs
Dive into Angular, part 2: Architecture
Charla taller Ionic + AngularJS Sysmana 2015
Dive into Angular, part 5: Experience
React js vs angularjs
Angular overview
Angular js best practice
Micro frontend
React vs Angular, who wins the competition?
Angular JS For Your Business
React vs angular what to choose for your app
angular-formly presentation
Controllers in AngularJs
Introduction to Angular js 2.0
Responsive web design with Angularjs
Angular,react,vue
Angularjs overview
AngularJs Basic Concept
How to Build Dynamic Forms in Angular Directive with a Backend
Angular Seminar-js
Burgas Conf 21.06.2014 - Single page application Angularjs and Nodejs
Ad

Similar to A Big Picture Of AngularJS (20)

PPTX
Angular js
PPTX
Understanding angular js
PPTX
Intoduction to Angularjs
PDF
AngularJS Basics
PDF
AngularJS By Vipin
PDF
AngularJS Workshop
PDF
One Weekend With AngularJS
PDF
AngularJS: Overview & Key Features
PPTX
Angular workshop - Full Development Guide
DOCX
Angular js getting started
PPTX
AngularJs
PPTX
PPT
Getting started with angular js
PPTX
Angular introduction basic
PPTX
Valentine with Angular js - Introduction
PPTX
Kalp Corporate Angular Js Tutorials
DOCX
AngularJS
PPT
Angular js
Angular js
Understanding angular js
Intoduction to Angularjs
AngularJS Basics
AngularJS By Vipin
AngularJS Workshop
One Weekend With AngularJS
AngularJS: Overview & Key Features
Angular workshop - Full Development Guide
Angular js getting started
AngularJs
Getting started with angular js
Angular introduction basic
Valentine with Angular js - Introduction
Kalp Corporate Angular Js Tutorials
AngularJS
Angular js
Ad

Recently uploaded (20)

PPTX
Spectroscopy.pptx food analysis technology
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Machine learning based COVID-19 study performance prediction
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Empathic Computing: Creating Shared Understanding
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
KodekX | Application Modernization Development
PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Cloud computing and distributed systems.
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
Teaching material agriculture food technology
PPTX
MYSQL Presentation for SQL database connectivity
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Approach and Philosophy of On baking technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Spectroscopy.pptx food analysis technology
Per capita expenditure prediction using model stacking based on satellite ima...
Machine learning based COVID-19 study performance prediction
Network Security Unit 5.pdf for BCA BBA.
Empathic Computing: Creating Shared Understanding
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
KodekX | Application Modernization Development
Unlocking AI with Model Context Protocol (MCP)
Understanding_Digital_Forensics_Presentation.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Cloud computing and distributed systems.
“AI and Expert System Decision Support & Business Intelligence Systems”
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Teaching material agriculture food technology
MYSQL Presentation for SQL database connectivity
NewMind AI Weekly Chronicles - August'25 Week I
Approach and Philosophy of On baking technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...

A Big Picture Of AngularJS

  • 1. A Big Picture of AngularJS By Nitin Pandit Nitin Pandit C# Corner Evangelist Microsoft MVP Follow Me : Twitter: @thinkaboutnitin Facebook: facebook.com/go4pandit Web: www.nitin-pandit.com
  • 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. What is AngularJs?
  • 3. Features: • 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. • Application written in AngularJS is cross-browser compliant. AngularJS automatically handles JavaScript code suitable for each browser. • 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.
  • 4. three most important things about AngularJs Directive Like: Services Like: Filters Like: ng-app, ng-bind, ng-model, ng-init etc.… $http, $location etc.… currency , filter , json etc.…
  • 7. What is $scope? Scope is a JavaScript object that refers to the application model. It acts as a context for evaluating Angular expressions. Basically, it acts as the glue between a controller and a view. Scopes are hierarchical in nature and follow the DOM structure of your AngularJs app
  • 8. Scope has certain characteristics like: $watch, $apply and $digest. Angular defines a concept called digest cycle. This cycle can be considered as a loop, during that Angular checks if there are any changes to all the variables watched by all the $scopes $watch: It keeps a constant eye on any mutation that occurs inside the model. $apply: It notifies Angular to update the DOM model after the scope properties are updated. $digest: It is triggered right after $apply does its job. Its task is to notify all the $watches that the application model has been updated. Let us do a hands-on sample to understand it better.
  • 9. $watch(): $watch(): $watch helps to listen for $scope change. Angular creates a $watch for every binding on the screen. That includes both ng-model and {{ ... }} (and ng-repeat and others directives). <!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8" /> <script src="Scripts/angular.min.js"></script> <script> var app = angular.module("app", []); app.controller("MyCtrl", function ($scope) { $scope.FName = "Nitin"; $scope.LName = "Pandit"; $scope.$watch("LName",function () { alert('hey, Last Name has changed!'); }); }); </script> </head> <body ng-app="app" ng-controller="MyCtrl"> First Name: <input ng-model="FName"/><br/> Last Name: <input ng-model="LName" /><br /> <!--<p ng-bind="FName" ng-bind="LName"></p>--> <p>{{FName+' '+LName}}</p> </body> </html>