SlideShare a Scribd company logo
Introduction to AngularJS
www.collaborationtech.co.in
Bengaluru INDIA
Presentation By
Ramananda M.S Rao
Content
Content
Overview
AngularJS - MVC Architecture
Angular.js Building Blocks
Directives
Data Binding
Scope
Model
Views
Routing
Filters
Services
Project
About Us
www.collaborationtech.co.in
Overview
AngularJS is a JavaScript framework made by Google for building
complex client-side applications.
Angular.js is a MVW (Model-View-Whatever) open-source JavaScript web framework
that facilitates the creation of single-page applications (SPA) and data-driven apps.
 Angular projects have a somewhat different structure than other JavaScript
MVC frameworks, but it can be highly modular and easy to maintain once
you understand the structure.
AngularJS is a JavaScript MVC framework developed by Google that lets
you build well structured, easily testable, and maintainable front-end
applications
AngularJS is an open source web application framework. It was originally
developed in 2009 by Misko Hevery and Adam Abrons.
AngularJS is a structural framework for dynamic web apps. It lets you use
HTML as your template language and lets you extend HTML's syntax to
express your application's components clearly and succinctly.
Angular's data binding and dependency injection eliminate much of the
code you currently have to write. And it all happens within the browser,
making it an ideal partner with any server technology.
www.collaborationtech.co.in
Overview
Why AngularJS?
 AngularJS is a MVC framework that defines numerous
concepts to properly organize your web application. Your
application is defined with modules that can depend from
one to the others.
 It enhances HTML by attaching directives to your pages with
new attributes or tags and expressions in order to define
very powerful templates directly in your HTML.
 It also encapsulates the behavior of your application in
controllers which are instantiated thanks to dependency
injection.
 AngularJS helps you structure and test your JavaScript code
very easily.
 Finally, utility code can easily be factorized into services that
can be injected in your controllers. Now let’s have a closer
look at all those features.
www.collaborationtech.co.in
First Hello World Example
<!DOCTYPE html>
<html>
<head>
<script src="angular.min.js"></script>
<link href="bootstrap.min.css" rel="stylesheet">
</head>
<body ng-app ng-init="name = 'World AngularJS'">
<h1>Hello {{name}}!</h1>
</body>
</html>
www.collaborationtech.co.in
Example
<html><head>
<title>Angular JS Controller</title>
<script src="angular.min.js"></script>
</head><body><h2>First Controller </h2>
<div ng-app="mainApp" ng-controller="employeeController">
Enter first name: <input type="text" ng-model="employee.firstName"><br><br>
Enter last name: <input type="text" ng-model="employee.lastName"><br>
You are entering: {{employee.fullName()}}
</div><script>
var mainApp = angular.module("mainApp", []);
mainApp.controller('employeeController', function($scope) {
$scope.employee = { firstName: "Raju", lastName: "Dodamani", fullName: function() {
var employeeObject; employeeObject = $scope.employee;
return employeeObject.firstName + " " + employeeObject.lastName;
} };});
</script>
</body>
</html>
www.collaborationtech.co.in
AngularJS - Controller
<html>
<head>
<title>Angular JS Custom Directives</title>
<script src="angular.min.js"></script>
</head>
<body>
<h2> Student Custom Directives</h2>
<div ng-app="mainApp" ng-controller="StudentController">
<student name="Ramesh"></student><br/>
<student name="Sunil"></student> </div>
<script src="angular.min.js"></script> <script>
<script>
var mainApp = angular.module("mainApp", []);
mainApp.directive('student', function()
{ var directive = {}; directive.restrict = 'E';
directive.template = "Student: <b>{{student.name}}</b> , Roll No:
<b>{{student.rollno}}</b>";
directive.scope = { student : "=name" }
www.collaborationtech.co.in
AngularJS - Controller
directive.compile = function(element, attributes)
{
element.css("border", "1px solid #cccccc");
var linkFunction = function($scope, element, attributes) {
element.html("Student: <b>"+$scope.student.name +"</b> , Roll No:
<b>"+$scope.student.rollno+"</b><br/>");
element.css("background-color", "lightblue"); }
return linkFunction; }
return directive;
});
mainApp.controller('StudentController', function($scope) {
$scope.Ramesh = {};
$scope.Ramesh.name = "Ramesh K";
$scope.Ramesh.rollno = 100;
$scope.Sunil = {};
$scope.Sunil.name = "Sunil P";
$scope.Sunil.rollno = 101; });
</script>
</body>
</html>
www.collaborationtech.co.in
About Us

More Related Content

What's hot (19)

PPTX
Angular js
Mindtree
 
PDF
Angular JS Introduction
Dhyego Fernando
 
PPTX
Angular js PPT
Imtiyaz Ahmad Khan
 
PDF
AngularJS for Beginners
Edureka!
 
PDF
Angular js
Knoldus Inc.
 
DOCX
Angular.js interview questions
codeandyou forums
 
PDF
AngularJS - introduction & how it works?
Alexe Bogdan
 
PDF
AngularJS
Hiten Pratap Singh
 
PDF
One Weekend With AngularJS
Yashobanta Bai
 
PDF
Introduction to AngularJS
Aldo Pizzagalli
 
PPTX
Angular workshop
hoa long
 
PPTX
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
PPTX
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
PPTX
Overview about AngularJS Framework
Camilo Lopes
 
PPTX
Angular js
Dinusha Nandika
 
PPTX
Starting with angular js
jagriti srivastava
 
PDF
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
PPTX
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Learnimtactics
 
Angular js
Mindtree
 
Angular JS Introduction
Dhyego Fernando
 
Angular js PPT
Imtiyaz Ahmad Khan
 
AngularJS for Beginners
Edureka!
 
Angular js
Knoldus Inc.
 
Angular.js interview questions
codeandyou forums
 
AngularJS - introduction & how it works?
Alexe Bogdan
 
One Weekend With AngularJS
Yashobanta Bai
 
Introduction to AngularJS
Aldo Pizzagalli
 
Angular workshop
hoa long
 
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
Overview about AngularJS Framework
Camilo Lopes
 
Angular js
Dinusha Nandika
 
Starting with angular js
jagriti srivastava
 
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Learnimtactics
 

Viewers also liked (10)

PDF
Introducción a AngularJS
Marcos Reynoso
 
PPTX
Introdução AngularJs
GDGFoz
 
ODP
Angular js up & running
Junaid Baloch
 
PDF
Intro to mobile apps with the ionic framework & angular js
Hector Iribarne
 
PDF
AngularJS - A Powerful Framework For Web Applications
Idexcel Technologies
 
PDF
Discover AngularJS
Fabien Vauchelles
 
PDF
NodeJS: the good parts? A skeptic’s view (jax jax2013)
Chris Richardson
 
PPT
Nodejs Event Driven Concurrency for Web Applications
Ganesh Iyer
 
PDF
NodeJS for Beginner
Apaichon Punopas
 
PDF
Anatomy of a Modern Node.js Application Architecture
AppDynamics
 
Introducción a AngularJS
Marcos Reynoso
 
Introdução AngularJs
GDGFoz
 
Angular js up & running
Junaid Baloch
 
Intro to mobile apps with the ionic framework & angular js
Hector Iribarne
 
AngularJS - A Powerful Framework For Web Applications
Idexcel Technologies
 
Discover AngularJS
Fabien Vauchelles
 
NodeJS: the good parts? A skeptic’s view (jax jax2013)
Chris Richardson
 
Nodejs Event Driven Concurrency for Web Applications
Ganesh Iyer
 
NodeJS for Beginner
Apaichon Punopas
 
Anatomy of a Modern Node.js Application Architecture
AppDynamics
 
Ad

Similar to Introduction to AngularJS Framework (20)

PDF
AngularJS - A JavaScript Framework
Tekki Web Solutions Pvt. Ltd.
 
DOCX
angularjs_tutorial.docx
telegramvip
 
PDF
AngularJS By Vipin
Vipin Mundayad
 
PPTX
Angularjs overview
VickyCmd
 
PPTX
Angular tutorial
Rohit Gupta
 
PPTX
Angular js
vu van quyet
 
PPTX
Intoduction to Angularjs
Gaurav Agrawal
 
PDF
What are the reasons behind growing popularity of AngularJS.pdf
mohitd6
 
PPTX
The Growing Popularity of AngularJS
Whiz Solutions
 
PPTX
18CSC311J WEB DESIGN AND DEVELOPMENT UNIT-2
Sivakumar M
 
PPTX
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
PPTX
Angular 6 Training with project in hyderabad india
php2ranjan
 
PDF
9 reasons why angular js web development should be your choice in 2020
Biztech Consulting & Solutions
 
PDF
angularjs-vs-angular-the-key-differences-between-javascript-and-typescript
Cuneiform Consulting Pvt Ltd.
 
PPTX
What are the key distinctions between Angular and AngularJS?
Albiorix Technology
 
PPTX
Angularjs on line training
Jahan Murugassan
 
PDF
Getting Started with AngularJS
Edureka!
 
PDF
Getting Started With AngularJS
Edureka!
 
PDF
An introduction to AngularJS
Yogesh singh
 
DOCX
AngularJS
Ermir Hoxhaj
 
AngularJS - A JavaScript Framework
Tekki Web Solutions Pvt. Ltd.
 
angularjs_tutorial.docx
telegramvip
 
AngularJS By Vipin
Vipin Mundayad
 
Angularjs overview
VickyCmd
 
Angular tutorial
Rohit Gupta
 
Angular js
vu van quyet
 
Intoduction to Angularjs
Gaurav Agrawal
 
What are the reasons behind growing popularity of AngularJS.pdf
mohitd6
 
The Growing Popularity of AngularJS
Whiz Solutions
 
18CSC311J WEB DESIGN AND DEVELOPMENT UNIT-2
Sivakumar M
 
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
sarah david
 
Angular 6 Training with project in hyderabad india
php2ranjan
 
9 reasons why angular js web development should be your choice in 2020
Biztech Consulting & Solutions
 
angularjs-vs-angular-the-key-differences-between-javascript-and-typescript
Cuneiform Consulting Pvt Ltd.
 
What are the key distinctions between Angular and AngularJS?
Albiorix Technology
 
Angularjs on line training
Jahan Murugassan
 
Getting Started with AngularJS
Edureka!
 
Getting Started With AngularJS
Edureka!
 
An introduction to AngularJS
Yogesh singh
 
AngularJS
Ermir Hoxhaj
 
Ad

More from Raveendra R (6)

PPTX
Introduction to Spring Framework
Raveendra R
 
PPTX
Introduction to Hibernate Framework
Raveendra R
 
PPTX
Introduction to JSON & AJAX
Raveendra R
 
PPTX
Introduction to JavaScript Programming
Raveendra R
 
PPTX
Introduction to Core Java Programming
Raveendra R
 
PPTX
Introduction to Python Basics Programming
Raveendra R
 
Introduction to Spring Framework
Raveendra R
 
Introduction to Hibernate Framework
Raveendra R
 
Introduction to JSON & AJAX
Raveendra R
 
Introduction to JavaScript Programming
Raveendra R
 
Introduction to Core Java Programming
Raveendra R
 
Introduction to Python Basics Programming
Raveendra R
 

Recently uploaded (20)

PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
Kit-Works Team Study_20250627_한달만에만든사내서비스키링(양다윗).pdf
Wonjun Hwang
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 

Introduction to AngularJS Framework

  • 1. Introduction to AngularJS www.collaborationtech.co.in Bengaluru INDIA Presentation By Ramananda M.S Rao
  • 2. Content Content Overview AngularJS - MVC Architecture Angular.js Building Blocks Directives Data Binding Scope Model Views Routing Filters Services Project About Us www.collaborationtech.co.in
  • 3. Overview AngularJS is a JavaScript framework made by Google for building complex client-side applications. Angular.js is a MVW (Model-View-Whatever) open-source JavaScript web framework that facilitates the creation of single-page applications (SPA) and data-driven apps.  Angular projects have a somewhat different structure than other JavaScript MVC frameworks, but it can be highly modular and easy to maintain once you understand the structure. AngularJS is a JavaScript MVC framework developed by Google that lets you build well structured, easily testable, and maintainable front-end applications AngularJS is an open source web application framework. It was originally developed in 2009 by Misko Hevery and Adam Abrons. AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML's syntax to express your application's components clearly and succinctly. Angular's data binding and dependency injection eliminate much of the code you currently have to write. And it all happens within the browser, making it an ideal partner with any server technology. www.collaborationtech.co.in
  • 4. Overview Why AngularJS?  AngularJS is a MVC framework that defines numerous concepts to properly organize your web application. Your application is defined with modules that can depend from one to the others.  It enhances HTML by attaching directives to your pages with new attributes or tags and expressions in order to define very powerful templates directly in your HTML.  It also encapsulates the behavior of your application in controllers which are instantiated thanks to dependency injection.  AngularJS helps you structure and test your JavaScript code very easily.  Finally, utility code can easily be factorized into services that can be injected in your controllers. Now let’s have a closer look at all those features. www.collaborationtech.co.in
  • 5. First Hello World Example <!DOCTYPE html> <html> <head> <script src="angular.min.js"></script> <link href="bootstrap.min.css" rel="stylesheet"> </head> <body ng-app ng-init="name = 'World AngularJS'"> <h1>Hello {{name}}!</h1> </body> </html> www.collaborationtech.co.in
  • 6. Example <html><head> <title>Angular JS Controller</title> <script src="angular.min.js"></script> </head><body><h2>First Controller </h2> <div ng-app="mainApp" ng-controller="employeeController"> Enter first name: <input type="text" ng-model="employee.firstName"><br><br> Enter last name: <input type="text" ng-model="employee.lastName"><br> You are entering: {{employee.fullName()}} </div><script> var mainApp = angular.module("mainApp", []); mainApp.controller('employeeController', function($scope) { $scope.employee = { firstName: "Raju", lastName: "Dodamani", fullName: function() { var employeeObject; employeeObject = $scope.employee; return employeeObject.firstName + " " + employeeObject.lastName; } };}); </script> </body> </html> www.collaborationtech.co.in
  • 7. AngularJS - Controller <html> <head> <title>Angular JS Custom Directives</title> <script src="angular.min.js"></script> </head> <body> <h2> Student Custom Directives</h2> <div ng-app="mainApp" ng-controller="StudentController"> <student name="Ramesh"></student><br/> <student name="Sunil"></student> </div> <script src="angular.min.js"></script> <script> <script> var mainApp = angular.module("mainApp", []); mainApp.directive('student', function() { var directive = {}; directive.restrict = 'E'; directive.template = "Student: <b>{{student.name}}</b> , Roll No: <b>{{student.rollno}}</b>"; directive.scope = { student : "=name" } www.collaborationtech.co.in
  • 8. AngularJS - Controller directive.compile = function(element, attributes) { element.css("border", "1px solid #cccccc"); var linkFunction = function($scope, element, attributes) { element.html("Student: <b>"+$scope.student.name +"</b> , Roll No: <b>"+$scope.student.rollno+"</b><br/>"); element.css("background-color", "lightblue"); } return linkFunction; } return directive; }); mainApp.controller('StudentController', function($scope) { $scope.Ramesh = {}; $scope.Ramesh.name = "Ramesh K"; $scope.Ramesh.rollno = 100; $scope.Sunil = {}; $scope.Sunil.name = "Sunil P"; $scope.Sunil.rollno = 101; }); </script> </body> </html> www.collaborationtech.co.in