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

PPTX
Introduction to Android Programming
PPTX
What's new in Angular 2?
PPTX
Angularjs PPT
PDF
Angularjs tutorial
PPTX
Training On Angular Js
DOCX
Different way to share data between controllers in angular js
PPT
Angular Seminar-js
PPTX
Introduction to AngularJS
Introduction to Android Programming
What's new in Angular 2?
Angularjs PPT
Angularjs tutorial
Training On Angular Js
Different way to share data between controllers in angular js
Angular Seminar-js
Introduction to AngularJS

What's hot (19)

PPTX
Angular js
PDF
Angular JS Introduction
PPTX
Angular js PPT
PDF
AngularJS for Beginners
PDF
Angular js
DOCX
Angular.js interview questions
PDF
AngularJS - introduction & how it works?
PDF
PDF
One Weekend With AngularJS
PDF
Introduction to AngularJS
PPTX
Angular workshop
PPTX
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
PPTX
Kalp Corporate Angular Js Tutorials
PPTX
Overview about AngularJS Framework
PPTX
Angular js
PPTX
Starting with angular js
PDF
Introduction to Angularjs : kishan kumar
PPTX
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Angular js
Angular JS Introduction
Angular js PPT
AngularJS for Beginners
Angular js
Angular.js interview questions
AngularJS - introduction & how it works?
One Weekend With AngularJS
Introduction to AngularJS
Angular workshop
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
Kalp Corporate Angular Js Tutorials
Overview about AngularJS Framework
Angular js
Starting with angular js
Introduction to Angularjs : kishan kumar
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Ad

Viewers also liked (10)

PDF
Introducción a AngularJS
PPTX
Introdução AngularJs
ODP
Angular js up & running
PDF
Intro to mobile apps with the ionic framework & angular js
PDF
AngularJS - A Powerful Framework For Web Applications
PDF
Discover AngularJS
PDF
NodeJS: the good parts? A skeptic’s view (jax jax2013)
PPT
Nodejs Event Driven Concurrency for Web Applications
PDF
NodeJS for Beginner
PDF
Anatomy of a Modern Node.js Application Architecture
Introducción a AngularJS
Introdução AngularJs
Angular js up & running
Intro to mobile apps with the ionic framework & angular js
AngularJS - A Powerful Framework For Web Applications
Discover AngularJS
NodeJS: the good parts? A skeptic’s view (jax jax2013)
Nodejs Event Driven Concurrency for Web Applications
NodeJS for Beginner
Anatomy of a Modern Node.js Application Architecture
Ad

Similar to Introduction to AngularJS Framework (20)

PDF
AngularJS - A JavaScript Framework
DOCX
angularjs_tutorial.docx
PDF
AngularJS By Vipin
PPTX
Angularjs overview
PPTX
Angular tutorial
PPTX
Angular js
PPTX
Intoduction to Angularjs
PDF
What are the reasons behind growing popularity of AngularJS.pdf
PPTX
The Growing Popularity of AngularJS
PPTX
18CSC311J WEB DESIGN AND DEVELOPMENT UNIT-2
PPTX
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
PPTX
Angular 6 Training with project in hyderabad india
PDF
9 reasons why angular js web development should be your choice in 2020
PDF
angularjs-vs-angular-the-key-differences-between-javascript-and-typescript
PPTX
What are the key distinctions between Angular and AngularJS?
PPTX
Angularjs on line training
PDF
Getting Started with AngularJS
PDF
Getting Started With AngularJS
PDF
An introduction to AngularJS
DOCX
AngularJS
AngularJS - A JavaScript Framework
angularjs_tutorial.docx
AngularJS By Vipin
Angularjs overview
Angular tutorial
Angular js
Intoduction to Angularjs
What are the reasons behind growing popularity of AngularJS.pdf
The Growing Popularity of AngularJS
18CSC311J WEB DESIGN AND DEVELOPMENT UNIT-2
angularjs_vs_angular_the_key_differences_between_javascript_and_typescript.pptx
Angular 6 Training with project in hyderabad india
9 reasons why angular js web development should be your choice in 2020
angularjs-vs-angular-the-key-differences-between-javascript-and-typescript
What are the key distinctions between Angular and AngularJS?
Angularjs on line training
Getting Started with AngularJS
Getting Started With AngularJS
An introduction to AngularJS
AngularJS

More from Raveendra R (6)

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

Recently uploaded (20)

PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
PDF
Chapter 2 Digital Image Fundamentals.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PPTX
Big Data Technologies - Introduction.pptx
PDF
Advanced IT Governance
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
PDF
madgavkar20181017ppt McKinsey Presentation.pdf
PPTX
Cloud computing and distributed systems.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Transforming Manufacturing operations through Intelligent Integrations
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Sensors and Actuators in IoT Systems using pdf
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
How Onsite IT Support Drives Business Efficiency, Security, and Growth.pdf
Chapter 2 Digital Image Fundamentals.pdf
cuic standard and advanced reporting.pdf
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Big Data Technologies - Introduction.pptx
Advanced IT Governance
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Telecom Fraud Prevention Guide | Hyperlink InfoSystem
madgavkar20181017ppt McKinsey Presentation.pdf
Cloud computing and distributed systems.
The Rise and Fall of 3GPP – Time for a Sabbatical?
MYSQL Presentation for SQL database connectivity
Transforming Manufacturing operations through Intelligent Integrations
Per capita expenditure prediction using model stacking based on satellite ima...
Sensors and Actuators in IoT Systems using pdf

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