SlideShare a Scribd company logo
Getting Started With
Getting Started With
Ref: OICS/TR/PPT/101
Presentation By,
Presentation by,
Mr.Manoj Mohan
OrisysIndia Consultancy Services,Technopark
Introduction
AngularJS is an open source web application framework. It was originally developed in 2009 by
Misko Hevery and Adam Abrons. It is now maintained by Google. Its latest version is 1.4.4 .
Defenition :
"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".
Features
● AngularJS is a powerful JavaScript based development framework to create RICH Internet
Application(RIA).
● AngulajJS 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.
● Overall, AngularJS is a framework to build large scale and high performance web appliation
while keeping them as easy-to-maintain.
Why angular JS ?
●Defines numerous ways to organize web application at client side.
●Enhances HTML by attaching directives, custom tags, attributes, expressions, templates within
HTML.
●Encourage TDD
●Encourage MVC/MVVM design pattern
●Code Reuse
●Good for Single Page Apps (SPA)
Core Features
Expression
Angular JS
Modules
Controllers
Directives
Validators
Providers
Data Binding
Factories
Services
Filters
Dependency Injection
Scope
Architecture
Event
Controller
View
Model
Application
Before we start with creating actual HelloWorld application using AngularJS, let us see
what are the actual parts of a AngularJS application. An AngularJS application consists
of following three important parts
ng-app : This directive defines and links an AngularJS application to HTML.
ng-model : This directive binds the values of AngularJS application data to HTML input
controls.
ng-bind : This directive bidns the AngularJS Application data to HTML tags.
Test App
<html>
<title>AngularJS First Application</title>
<body>
<h1>Sample Application</h1>
<div ng-app="">
<p>Enter your Name: <input type="text" ng-model="name"></p>
<p>Hello <span ng-bind="name"></span>!</p>
</div>
<script
src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.m
in.js"></script>
</body>
</html>
AngularJS Directives
AngularJS directives are used to extend HTML. These are special attributes starting with ng-
prefix. We're going to discuss following directives:
ng-app - This directive starts an AngularJS Application.
ng-init - This directive initializes application data.
ng-model - This directive defines the model that is variable to be used in AngularJS.
ng-repeat - This directive repeats html elements for each item in a collection.
AngularJS Controllers
<html>
<head>
<title>Angular JS Controller</title>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
</head>
<body>
<h2>AngularJS Sample Application</h2>
<div ng-app="mainApp" ng-controller="studentController">
Enter first name: <input type="text" ng-model="student.firstName"><br><br>
Enter last name: <input type="text" ng-model="student.lastName"><br>
<br>
You are entering: {{student.fullName()}}
</div>
AngularJS Controllers
<script>
var mainApp = angular.module("mainApp", []);
mainApp.controller('studentController', function($scope) {
$scope.student = {
firstName: "Mahesh",
lastName: "Parashar",
fullName: function() {
var studentObject;
studentObject = $scope.student;
return studentObject.firstName + " " + studentObject.lastName;
}
};
});
</script>
Ajax test code
<html>
<head>
<title>Angular JS Includes</title>
</head>
<body>
<h2>AngularJS Sample Application</h2>
<div ng-app="" ng-controller="studentController">
<table>
<tr ng-repeat="student in students">
<td>{{ student.Name }}</td>
<td>{{ student.RollNo }}</td>
<td>{{ student.Percentage }}</td>
</tr>
</table>
<script>
function studentController($scope,$http) {
var url="data.txt";
$http.get(url).success( function(response) {
$scope.students = response;
});
}
</script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script>
</body>
</html>
Hello JQuery
<p id="greeting2"></p>
<script>
$(function(){
$('#greeting2').text('Hello World!');
});
</script>
Hello AngularJS
<p ng:init="greeting = 'Hello World!'">{{greeting}}</p>
Html Dom
1 ng-disabled disables a given control.
2 ng-show shows a given control.
3 ng-hide hides a given control.
4 ng-click represents a AngularJS click event.
Advanced AngularJS Concept
•Dependency Injection
•Modularity
•Digesting
•Scope
•Handling SEO
•End to End Testing
•Promises
•Localization
•Filters
Services
This service is used to display toast message for every action.
Sample Code:-
mainApp.service('getToast', ['$mdToast', '$animate', function($mdToast,
$animate) {
this.messageBox = function(msg, type) {
var box = $mdToast.show(
$mdToast.simple()
.textContent(msg)
.position('top right')
.theme(type)
.hideDelay(2000)
);
return box;
}
}]);
Factory
This factory is used to list users which is saved as json file.
Sample Code
mainApp.factory('myAppFactory', function($http) {
return {
getData: function() {
return $http({
method: 'GET',
url: 'json/userlist.json'
});
}
}
})
Dis-advantage
Angular is not the silver bullet. Some of its disadvantages are backsides of its strong points, some
are inherent to the JavaScript ineffectiveness that could not be overcome even with the best
derivatives.
The weaknesses are:
● Angular is big and complicated. With multiple ways to do the same thing it is hard to tell which
way is better for particular task. Mastering Angular over the “Hello world” level requires
considerable efforts. Different developers’ coding styles and habits might complicate integration of
different components into a whole solution.
●The lifecycle of Angular application is complex, and to master it you really need to read the code.
Compile and link are not intuitive, and specific cases can be confusing (recursion in compile,
collisions between directives etc.).
●As the project grows with time, you most likely will need to throw away existing implementations
and create new versions using different approaches. Angular implementations scale poorly.
●More than 2000 watchers can severely lag the UI. That limits the complexity of your Angular
forms, especially big data grids and lists.
jQuery & AngularJS
Basement (-2), Thejaswini Building
Technopark, Kerala 695 581, India
www.orisys.in
Email: contact@orisys.in ,
Office (Technopark) :+91-9946 014 345
Office (Sasthamangalam) :+91-8086 800 203
Ad

More Related Content

What's hot (20)

AngularJS Best Practices
AngularJS Best PracticesAngularJS Best Practices
AngularJS Best Practices
Narek Mamikonyan
 
Angularjs PPT
Angularjs PPTAngularjs PPT
Angularjs PPT
Amit Baghel
 
Angular from Scratch
Angular from ScratchAngular from Scratch
Angular from Scratch
Christian Lilley
 
Introduction to Angular js 2.0
Introduction to Angular js 2.0Introduction to Angular js 2.0
Introduction to Angular js 2.0
Nagaraju Sangam
 
AngularJS introduction
AngularJS introductionAngularJS introduction
AngularJS introduction
Tania Gonzales
 
Angular js PPT
Angular js PPTAngular js PPT
Angular js PPT
Imtiyaz Ahmad Khan
 
AngularJs presentation
AngularJs presentation AngularJs presentation
AngularJs presentation
Phan Tuan
 
Introduction to AngularJS Framework
Introduction to AngularJS FrameworkIntroduction to AngularJS Framework
Introduction to AngularJS Framework
Raveendra R
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to Angularjs
Gaurav Agrawal
 
AngularJS 101 - Everything you need to know to get started
AngularJS 101 - Everything you need to know to get startedAngularJS 101 - Everything you need to know to get started
AngularJS 101 - Everything you need to know to get started
Stéphane Bégaudeau
 
Angular 5
Angular 5Angular 5
Angular 5
Bartłomiej Narożnik
 
Overview of the AngularJS framework
Overview of the AngularJS framework Overview of the AngularJS framework
Overview of the AngularJS framework
Yakov Fain
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
Jussi Pohjolainen
 
AngularJS Project Setup step-by- step guide - RapidValue Solutions
AngularJS Project Setup step-by- step guide - RapidValue SolutionsAngularJS Project Setup step-by- step guide - RapidValue Solutions
AngularJS Project Setup step-by- step guide - RapidValue Solutions
RapidValue
 
AngularJS One Day Workshop
AngularJS One Day WorkshopAngularJS One Day Workshop
AngularJS One Day Workshop
Shyam Seshadri
 
Front end development with Angular JS
Front end development with Angular JSFront end development with Angular JS
Front end development with Angular JS
Bipin
 
Angular 8
Angular 8 Angular 8
Angular 8
Sunil OS
 
Angular js
Angular jsAngular js
Angular js
Behind D Walls
 
AngularJS intro
AngularJS introAngularJS intro
AngularJS intro
dizabl
 
AngularJS - Services
AngularJS - ServicesAngularJS - Services
AngularJS - Services
Nir Kaufman
 
Introduction to Angular js 2.0
Introduction to Angular js 2.0Introduction to Angular js 2.0
Introduction to Angular js 2.0
Nagaraju Sangam
 
AngularJS introduction
AngularJS introductionAngularJS introduction
AngularJS introduction
Tania Gonzales
 
AngularJs presentation
AngularJs presentation AngularJs presentation
AngularJs presentation
Phan Tuan
 
Introduction to AngularJS Framework
Introduction to AngularJS FrameworkIntroduction to AngularJS Framework
Introduction to AngularJS Framework
Raveendra R
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to Angularjs
Gaurav Agrawal
 
AngularJS 101 - Everything you need to know to get started
AngularJS 101 - Everything you need to know to get startedAngularJS 101 - Everything you need to know to get started
AngularJS 101 - Everything you need to know to get started
Stéphane Bégaudeau
 
Overview of the AngularJS framework
Overview of the AngularJS framework Overview of the AngularJS framework
Overview of the AngularJS framework
Yakov Fain
 
AngularJS Project Setup step-by- step guide - RapidValue Solutions
AngularJS Project Setup step-by- step guide - RapidValue SolutionsAngularJS Project Setup step-by- step guide - RapidValue Solutions
AngularJS Project Setup step-by- step guide - RapidValue Solutions
RapidValue
 
AngularJS One Day Workshop
AngularJS One Day WorkshopAngularJS One Day Workshop
AngularJS One Day Workshop
Shyam Seshadri
 
Front end development with Angular JS
Front end development with Angular JSFront end development with Angular JS
Front end development with Angular JS
Bipin
 
Angular 8
Angular 8 Angular 8
Angular 8
Sunil OS
 
AngularJS intro
AngularJS introAngularJS intro
AngularJS intro
dizabl
 
AngularJS - Services
AngularJS - ServicesAngularJS - Services
AngularJS - Services
Nir Kaufman
 

Viewers also liked (15)

Dossier de Presse ENDOCONTROL 2015-2016
Dossier de Presse ENDOCONTROL 2015-2016Dossier de Presse ENDOCONTROL 2015-2016
Dossier de Presse ENDOCONTROL 2015-2016
ENDO CONTROL
 
Modul 3, oppgave 1 sebastian mikalsen
Modul 3, oppgave 1 sebastian mikalsenModul 3, oppgave 1 sebastian mikalsen
Modul 3, oppgave 1 sebastian mikalsen
Sebastian Mikalsen
 
Functies ict
Functies ictFuncties ict
Functies ict
MrDeFoer
 
challotte's 12 story tree howse
challotte's 12 story tree howsechallotte's 12 story tree howse
challotte's 12 story tree howse
dai0001
 
Hot diptpc9
Hot diptpc9Hot diptpc9
Hot diptpc9
Alin Tomozei
 
Transformation of The Theater
Transformation of The TheaterTransformation of The Theater
Transformation of The Theater
Johnneshia Donald
 
Nature wise power point
Nature wise power pointNature wise power point
Nature wise power point
DeAnna Hansen
 
Катафорезное покрытие для насосов KV и KVC/KVCX
Катафорезное покрытие для насосов KV и KVC/KVCXКатафорезное покрытие для насосов KV и KVC/KVCX
Катафорезное покрытие для насосов KV и KVC/KVCX
DAB Pump SpA
 
Вопросы соискателя на интервью
Вопросы соискателя на интервьюВопросы соискателя на интервью
Вопросы соискателя на интервью
BOSSHUNT
 
Love is
Love isLove is
Love is
Paula Melo
 
Modul 3
Modul 3Modul 3
Modul 3
Pål Jakobsen
 
questionnaire analysis
questionnaire analysis questionnaire analysis
questionnaire analysis
meredithsmediastudies
 
+El hijo mensaje_
+El hijo mensaje_+El hijo mensaje_
+El hijo mensaje_
Daniel Davila Correa
 
Anders dan anderen krant uitleg (1)
Anders dan anderen krant uitleg (1)Anders dan anderen krant uitleg (1)
Anders dan anderen krant uitleg (1)
ilsenol88
 
Duffel Terra: Never Yield by Humberto Belli - #BHMASLife
Duffel Terra: Never Yield by Humberto Belli - #BHMASLifeDuffel Terra: Never Yield by Humberto Belli - #BHMASLife
Duffel Terra: Never Yield by Humberto Belli - #BHMASLife
Brandhome
 
Dossier de Presse ENDOCONTROL 2015-2016
Dossier de Presse ENDOCONTROL 2015-2016Dossier de Presse ENDOCONTROL 2015-2016
Dossier de Presse ENDOCONTROL 2015-2016
ENDO CONTROL
 
Modul 3, oppgave 1 sebastian mikalsen
Modul 3, oppgave 1 sebastian mikalsenModul 3, oppgave 1 sebastian mikalsen
Modul 3, oppgave 1 sebastian mikalsen
Sebastian Mikalsen
 
Functies ict
Functies ictFuncties ict
Functies ict
MrDeFoer
 
challotte's 12 story tree howse
challotte's 12 story tree howsechallotte's 12 story tree howse
challotte's 12 story tree howse
dai0001
 
Transformation of The Theater
Transformation of The TheaterTransformation of The Theater
Transformation of The Theater
Johnneshia Donald
 
Nature wise power point
Nature wise power pointNature wise power point
Nature wise power point
DeAnna Hansen
 
Катафорезное покрытие для насосов KV и KVC/KVCX
Катафорезное покрытие для насосов KV и KVC/KVCXКатафорезное покрытие для насосов KV и KVC/KVCX
Катафорезное покрытие для насосов KV и KVC/KVCX
DAB Pump SpA
 
Вопросы соискателя на интервью
Вопросы соискателя на интервьюВопросы соискателя на интервью
Вопросы соискателя на интервью
BOSSHUNT
 
Anders dan anderen krant uitleg (1)
Anders dan anderen krant uitleg (1)Anders dan anderen krant uitleg (1)
Anders dan anderen krant uitleg (1)
ilsenol88
 
Duffel Terra: Never Yield by Humberto Belli - #BHMASLife
Duffel Terra: Never Yield by Humberto Belli - #BHMASLifeDuffel Terra: Never Yield by Humberto Belli - #BHMASLife
Duffel Terra: Never Yield by Humberto Belli - #BHMASLife
Brandhome
 
Ad

Similar to The Basics Angular JS (20)

Angular Javascript Tutorial with command
Angular Javascript Tutorial with commandAngular Javascript Tutorial with command
Angular Javascript Tutorial with command
ssuser42b933
 
Training On Angular Js
Training On Angular JsTraining On Angular Js
Training On Angular Js
Mahima Radhakrishnan
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
EPAM Systems
 
Angular js
Angular jsAngular js
Angular js
Silver Touch Technologies Ltd
 
AngularJS By Vipin
AngularJS By VipinAngularJS By Vipin
AngularJS By Vipin
Vipin Mundayad
 
Angular js slides
Angular js slidesAngular js slides
Angular js slides
Amr Abd El Latief
 
Angular js interview question answer for fresher
Angular js interview question answer for fresherAngular js interview question answer for fresher
Angular js interview question answer for fresher
Ravi Bhadauria
 
Introduction to AngularJS By Bharat Makwana
Introduction to AngularJS By Bharat MakwanaIntroduction to AngularJS By Bharat Makwana
Introduction to AngularJS By Bharat Makwana
Bharat Makwana
 
AngularJS Basics
AngularJS BasicsAngularJS Basics
AngularJS Basics
Ravi Mone
 
Mean stack Magics
Mean stack MagicsMean stack Magics
Mean stack Magics
Aishura Aishu
 
Angular JS training institute in Jaipur
           Angular JS training institute in Jaipur           Angular JS training institute in Jaipur
Angular JS training institute in Jaipur
HEMANT SAXENA
 
Workshop 12: AngularJS Parte I
Workshop 12: AngularJS Parte IWorkshop 12: AngularJS Parte I
Workshop 12: AngularJS Parte I
Visual Engineering
 
ANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 schANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 sch
kannikadg
 
Introduction to Angular Js
Introduction to Angular JsIntroduction to Angular Js
Introduction to Angular Js
Professional Guru
 
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
AngularJs Superheroic JavaScript MVW Framework Services by Miracle StudiosAngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Learnimtactics
 
Angular workshop - Full Development Guide
Angular workshop - Full Development GuideAngular workshop - Full Development Guide
Angular workshop - Full Development Guide
Nitin Giri
 
Angular Project Report
 Angular Project Report Angular Project Report
Angular Project Report
Kodexhub
 
introduction to Angularjs basics
introduction to Angularjs basicsintroduction to Angularjs basics
introduction to Angularjs basics
Ravindra K
 
AngularJS 1.x training
AngularJS 1.x trainingAngularJS 1.x training
AngularJS 1.x training
Roberto Ramadhin
 
angularjs_tutorial.docx
angularjs_tutorial.docxangularjs_tutorial.docx
angularjs_tutorial.docx
telegramvip
 
Angular Javascript Tutorial with command
Angular Javascript Tutorial with commandAngular Javascript Tutorial with command
Angular Javascript Tutorial with command
ssuser42b933
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
EPAM Systems
 
Angular js interview question answer for fresher
Angular js interview question answer for fresherAngular js interview question answer for fresher
Angular js interview question answer for fresher
Ravi Bhadauria
 
Introduction to AngularJS By Bharat Makwana
Introduction to AngularJS By Bharat MakwanaIntroduction to AngularJS By Bharat Makwana
Introduction to AngularJS By Bharat Makwana
Bharat Makwana
 
AngularJS Basics
AngularJS BasicsAngularJS Basics
AngularJS Basics
Ravi Mone
 
Angular JS training institute in Jaipur
           Angular JS training institute in Jaipur           Angular JS training institute in Jaipur
Angular JS training institute in Jaipur
HEMANT SAXENA
 
Workshop 12: AngularJS Parte I
Workshop 12: AngularJS Parte IWorkshop 12: AngularJS Parte I
Workshop 12: AngularJS Parte I
Visual Engineering
 
ANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 schANGULAR JS LAB MANUAL(final) vtu2021 sch
ANGULAR JS LAB MANUAL(final) vtu2021 sch
kannikadg
 
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
AngularJs Superheroic JavaScript MVW Framework Services by Miracle StudiosAngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Learnimtactics
 
Angular workshop - Full Development Guide
Angular workshop - Full Development GuideAngular workshop - Full Development Guide
Angular workshop - Full Development Guide
Nitin Giri
 
Angular Project Report
 Angular Project Report Angular Project Report
Angular Project Report
Kodexhub
 
introduction to Angularjs basics
introduction to Angularjs basicsintroduction to Angularjs basics
introduction to Angularjs basics
Ravindra K
 
angularjs_tutorial.docx
angularjs_tutorial.docxangularjs_tutorial.docx
angularjs_tutorial.docx
telegramvip
 
Ad

Recently uploaded (20)

AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
 
Learn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step GuideLearn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step Guide
Marcel David
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Rock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning JourneyRock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning Journey
Lynda Kane
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
Datastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptxDatastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptx
kaleeswaric3
 
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your UsersAutomation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Lynda Kane
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Asthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdfAsthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdf
VanessaRaudez
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
AI EngineHost Review: Revolutionary USA Datacenter-Based Hosting with NVIDIA ...
SOFTTECHHUB
 
AI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global TrendsAI and Data Privacy in 2025: Global Trends
AI and Data Privacy in 2025: Global Trends
InData Labs
 
Buckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug LogsBuckeye Dreamin' 2023: De-fogging Debug Logs
Buckeye Dreamin' 2023: De-fogging Debug Logs
Lynda Kane
 
Learn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step GuideLearn the Basics of Agile Development: Your Step-by-Step Guide
Learn the Basics of Agile Development: Your Step-by-Step Guide
Marcel David
 
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdfThe Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
The Evolution of Meme Coins A New Era for Digital Currency ppt.pdf
Abi john
 
Automation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From AnywhereAutomation Dreamin': Capture User Feedback From Anywhere
Automation Dreamin': Capture User Feedback From Anywhere
Lynda Kane
 
Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025Splunk Security Update | Public Sector Summit Germany 2025
Splunk Security Update | Public Sector Summit Germany 2025
Splunk
 
Rock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning JourneyRock, Paper, Scissors: An Apex Map Learning Journey
Rock, Paper, Scissors: An Apex Map Learning Journey
Lynda Kane
 
2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx2025-05-Q4-2024-Investor-Presentation.pptx
2025-05-Q4-2024-Investor-Presentation.pptx
Samuele Fogagnolo
 
What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...What is Model Context Protocol(MCP) - The new technology for communication bw...
What is Model Context Protocol(MCP) - The new technology for communication bw...
Vishnu Singh Chundawat
 
Electronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploitElectronic_Mail_Attacks-1-35.pdf by xploit
Electronic_Mail_Attacks-1-35.pdf by xploit
niftliyevhuseyn
 
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
AI Changes Everything – Talk at Cardiff Metropolitan University, 29th April 2...
Alan Dix
 
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptxSpecial Meetup Edition - TDX Bengaluru Meetup #52.pptx
Special Meetup Edition - TDX Bengaluru Meetup #52.pptx
shyamraj55
 
Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)Into The Box Conference Keynote Day 1 (ITB2025)
Into The Box Conference Keynote Day 1 (ITB2025)
Ortus Solutions, Corp
 
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdfComplete Guide to Advanced Logistics Management Software in Riyadh.pdf
Complete Guide to Advanced Logistics Management Software in Riyadh.pdf
Software Company
 
Datastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptxDatastucture-Unit 4-Linked List Presentation.pptx
Datastucture-Unit 4-Linked List Presentation.pptx
kaleeswaric3
 
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your UsersAutomation Dreamin' 2022: Sharing Some Gratitude with Your Users
Automation Dreamin' 2022: Sharing Some Gratitude with Your Users
Lynda Kane
 
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager APIUiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPath Community Berlin: Orchestrator API, Swagger, and Test Manager API
UiPathCommunity
 
Asthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdfAsthma presentación en inglés abril 2025 pdf
Asthma presentación en inglés abril 2025 pdf
VanessaRaudez
 
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In FranceManifest Pre-Seed Update | A Humanoid OEM Deeptech In France
Manifest Pre-Seed Update | A Humanoid OEM Deeptech In France
chb3
 

The Basics Angular JS

  • 1. Getting Started With Getting Started With Ref: OICS/TR/PPT/101
  • 2. Presentation By, Presentation by, Mr.Manoj Mohan OrisysIndia Consultancy Services,Technopark
  • 3. Introduction AngularJS is an open source web application framework. It was originally developed in 2009 by Misko Hevery and Adam Abrons. It is now maintained by Google. Its latest version is 1.4.4 . Defenition : "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".
  • 4. Features ● AngularJS is a powerful JavaScript based development framework to create RICH Internet Application(RIA). ● AngulajJS 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. ● Overall, AngularJS is a framework to build large scale and high performance web appliation while keeping them as easy-to-maintain.
  • 5. Why angular JS ? ●Defines numerous ways to organize web application at client side. ●Enhances HTML by attaching directives, custom tags, attributes, expressions, templates within HTML. ●Encourage TDD ●Encourage MVC/MVVM design pattern ●Code Reuse ●Good for Single Page Apps (SPA)
  • 6. Core Features Expression Angular JS Modules Controllers Directives Validators Providers Data Binding Factories Services Filters Dependency Injection Scope
  • 8. Application Before we start with creating actual HelloWorld application using AngularJS, let us see what are the actual parts of a AngularJS application. An AngularJS application consists of following three important parts ng-app : This directive defines and links an AngularJS application to HTML. ng-model : This directive binds the values of AngularJS application data to HTML input controls. ng-bind : This directive bidns the AngularJS Application data to HTML tags.
  • 9. Test App <html> <title>AngularJS First Application</title> <body> <h1>Sample Application</h1> <div ng-app=""> <p>Enter your Name: <input type="text" ng-model="name"></p> <p>Hello <span ng-bind="name"></span>!</p> </div> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.m in.js"></script> </body> </html>
  • 10. AngularJS Directives AngularJS directives are used to extend HTML. These are special attributes starting with ng- prefix. We're going to discuss following directives: ng-app - This directive starts an AngularJS Application. ng-init - This directive initializes application data. ng-model - This directive defines the model that is variable to be used in AngularJS. ng-repeat - This directive repeats html elements for each item in a collection.
  • 11. AngularJS Controllers <html> <head> <title>Angular JS Controller</title> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script> </head> <body> <h2>AngularJS Sample Application</h2> <div ng-app="mainApp" ng-controller="studentController"> Enter first name: <input type="text" ng-model="student.firstName"><br><br> Enter last name: <input type="text" ng-model="student.lastName"><br> <br> You are entering: {{student.fullName()}} </div>
  • 12. AngularJS Controllers <script> var mainApp = angular.module("mainApp", []); mainApp.controller('studentController', function($scope) { $scope.student = { firstName: "Mahesh", lastName: "Parashar", fullName: function() { var studentObject; studentObject = $scope.student; return studentObject.firstName + " " + studentObject.lastName; } }; }); </script>
  • 13. Ajax test code <html> <head> <title>Angular JS Includes</title> </head> <body> <h2>AngularJS Sample Application</h2> <div ng-app="" ng-controller="studentController"> <table> <tr ng-repeat="student in students"> <td>{{ student.Name }}</td> <td>{{ student.RollNo }}</td> <td>{{ student.Percentage }}</td> </tr> </table>
  • 14. <script> function studentController($scope,$http) { var url="data.txt"; $http.get(url).success( function(response) { $scope.students = response; }); } </script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.min.js"></script> </body> </html>
  • 16. Hello AngularJS <p ng:init="greeting = 'Hello World!'">{{greeting}}</p>
  • 17. Html Dom 1 ng-disabled disables a given control. 2 ng-show shows a given control. 3 ng-hide hides a given control. 4 ng-click represents a AngularJS click event.
  • 18. Advanced AngularJS Concept •Dependency Injection •Modularity •Digesting •Scope •Handling SEO •End to End Testing •Promises •Localization •Filters
  • 19. Services This service is used to display toast message for every action. Sample Code:- mainApp.service('getToast', ['$mdToast', '$animate', function($mdToast, $animate) { this.messageBox = function(msg, type) { var box = $mdToast.show( $mdToast.simple() .textContent(msg) .position('top right') .theme(type) .hideDelay(2000) ); return box; } }]);
  • 20. Factory This factory is used to list users which is saved as json file. Sample Code mainApp.factory('myAppFactory', function($http) { return { getData: function() { return $http({ method: 'GET', url: 'json/userlist.json' }); } } })
  • 21. Dis-advantage Angular is not the silver bullet. Some of its disadvantages are backsides of its strong points, some are inherent to the JavaScript ineffectiveness that could not be overcome even with the best derivatives. The weaknesses are: ● Angular is big and complicated. With multiple ways to do the same thing it is hard to tell which way is better for particular task. Mastering Angular over the “Hello world” level requires considerable efforts. Different developers’ coding styles and habits might complicate integration of different components into a whole solution. ●The lifecycle of Angular application is complex, and to master it you really need to read the code. Compile and link are not intuitive, and specific cases can be confusing (recursion in compile, collisions between directives etc.). ●As the project grows with time, you most likely will need to throw away existing implementations and create new versions using different approaches. Angular implementations scale poorly. ●More than 2000 watchers can severely lag the UI. That limits the complexity of your Angular forms, especially big data grids and lists.
  • 23. Basement (-2), Thejaswini Building Technopark, Kerala 695 581, India www.orisys.in Email: [email protected] , Office (Technopark) :+91-9946 014 345 Office (Sasthamangalam) :+91-8086 800 203