SlideShare a Scribd company logo
Introduction to
AngularJS
PRESENTED BY
SUBBA TANNIRU
TECH LEAD, CONSUMER MARKETS
Agenda
Introduction
Basic Concepts
Features
Getting Started/Demo
Modules, Controllers, Directives, Filters/Demo
Templates, Custom Directives/Demo
Service Calls, $http, Custom Service /Demo
Useful Resources/Questions
Introduction – Modern Web
From Web Pages to Web Applications
Traditional Applications to Single Page Application(SPA)
More and more logic is pushed to the client
Responsive Design
Mobile First Development
Introduction - Problem
As we add more & more Javascript, our application is getting:
Hard to
Understand
Hard to
Test
Hard to
Maintain
Introduction- Birth of Angular
• Started as side project by Miško Hevery & Adam Abrons in
2009
• Google feedback project
GWT
17000 loc
3 developers
6 months
Angular
1500 loc
1 developer
3 weeks
Basic Concepts – What is Angular?
HTML enhanced for Web Apps
Declarative Programming
MVC Framework
Brings Best Practices from server side to client side
Open Source (MIT License)
Works on all modern browsers(IE9 and above)
Full featured SPA framework
Can be combined with JQuery & other libraries
Features
2 Way data binding
MVC Framework
Dependency Injection
Services
Templates
Routing
End to End Testing
Getting Started – Hello World !
Tools
• Web Server
• Text Editor
Steps
• Load Angular
• Declare ng-app
Getting Started – Hello World !
DEMO
content.html
<head>
<title>Welcome to Angular</title>
<script type="text/javascript"
src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js">
</script>
</head>
<body ng-app>
<h1>{{"Hello "+"World !"}}</h1>
</body>
Building Blocks
Module
Controller Directive Filter Config
Route
Service
Factory
Provider
Value
Building Blocks – Module, Controller
app.js
var app=angular.module('MyApp',[]);
app.controller("MyCtrl",function($scope){
$scope.quantity=5;
$scope.price=10;
}
content.html
<body ng-app="MyApp">
<div ng-controller="MyCtrl">
<input type="number" ng-model="quantity">
<input type="number" ng-model="price">
<span ng-bind="quantity*price|currency"></span>
</div>
</div>
Building Blocks – Built in Directives & Filters
DEMO
BuiltInDirectives
• ng-app
• ng-model
• ng-repeat
• ng-switch
• ng-show
• ng-hide
• ng-include
• ng-click
• ng-form
• ng-submit
BuiltinFilters
• filter
• date
• number
• currency
• lowercase
• uppercase
• limitTo
• orderBy
Templates – ng-include
DEMO
content.html
<body ng-app="MyApp">
<div ng-controller="MyCtrl">
<div ng-include="'header.html'"></div>
<div>This is Main Section</div>
<div>This is Footer</div>
</div>
</body>
header.html
<div>
<strong>This is Header Template. Welcome {{user}}</strong>
</div>
Custom Directive
DEMO
app.js
var app=angular.module('MyApp',[]);
app.directive('footer',function(){
return{
templateUrl:'footer.html'
}
});
content.html
<body ng-app="MyApp">
<div ng-controller="MyCtrl" class="container">
<div ng-include="'header.html'"></div>
<div ng-include="mainsection"></div>
<footer></footer>
</div>
</body>
footer.html
<div>
<strong>This is Footer Template.</strong>
</div>
Custom Service
app.js
var app=angular.module('MyApp',[]);
app.controller("MyCtrl",function($scope,customerServiceSimple){
$scope.user="Subba";
$scope.mainsection='main.html';
$scope.customers= customerServiceSimple.get();
}
app.service('customerServiceSimple',function(){
this.get=function(){
return [{firstName:"John",lastName:"Smith", age:25},
{firstName:"Harry",lastName:"Potter", age:16},
{firstName:"James",lastName:"Bond", age:40},
{firstName:"Subba",lastName:"Tanniru", age:20}];
}
})
Calling REST Service
DEMO
app.js
var app=angular.module('MyApp',[]);
app.controller("MyCtrl",function($scope,customerService){
$scope.user="Subba";
$scope.mainsection='main.html';
getCustomers();
function getCustomers(){
customerService.get()
.success(function(data,status){
$scope.customers=data.customers;
})
}
});
app.service('customerService',function($http,$log){
var getUrl="http://localhost/angularjs/customers.json";
this.get=function(){
return $http.get(getUrl);
}
}
Questions/Resources
https://docs.angularjs.org/tutorial
https://egghead.io/technologies/angularjs
http://youtube.com
https://www.safaribooksonline.com/
http://jsfiddle.net/
Introduction to AngularJS

More Related Content

What's hot (18)

PDF
How to deal with mobile traffic expansion
Mevlana M. Gürbulak
 
PPTX
Automated Testing – Web, Mobile, Desktop - Challenges and Successes
Ted Drake
 
PPTX
Progressive Web Apps and React
Mike Melusky
 
PDF
Progressive Web Apps
Software Infrastructure
 
PPTX
PWA ( Progressive Web Apps ) - Sai Kiran Kasireddy
Sai Kiran Kasireddy
 
PPTX
Home management WebApp presentation
bhavesh singh
 
PDF
Progressive Web Apps / GDG DevFest - Season 2016
Abdelrahman Omran
 
PPTX
PWA - Progressive Web Apps
Edy Segura
 
PDF
Progressive Web Applications
Bartek Igielski
 
PPTX
Introduction to Progressive Web App
Binh Bui
 
PPTX
Progressive Web Apps
Nitheesh T Ganesh
 
PDF
Progressive Web Apps are here!
Antonio Peric-Mazar
 
PPTX
Pwa.pptx
Harish Karthick
 
PDF
Getting Started with Progressive Web Apps
Bill Stavroulakis
 
PDF
Progressive web apps
Akshay Sharma
 
PPTX
Windows Store Apps: Tips & Tricks
Robert MacLean
 
PPTX
Progressive Web Apps - Quick Guide to Explore
eLuminous Technologies Pvt. Ltd.
 
PPTX
Progressive Web App
Padmaashree K
 
How to deal with mobile traffic expansion
Mevlana M. Gürbulak
 
Automated Testing – Web, Mobile, Desktop - Challenges and Successes
Ted Drake
 
Progressive Web Apps and React
Mike Melusky
 
Progressive Web Apps
Software Infrastructure
 
PWA ( Progressive Web Apps ) - Sai Kiran Kasireddy
Sai Kiran Kasireddy
 
Home management WebApp presentation
bhavesh singh
 
Progressive Web Apps / GDG DevFest - Season 2016
Abdelrahman Omran
 
PWA - Progressive Web Apps
Edy Segura
 
Progressive Web Applications
Bartek Igielski
 
Introduction to Progressive Web App
Binh Bui
 
Progressive Web Apps
Nitheesh T Ganesh
 
Progressive Web Apps are here!
Antonio Peric-Mazar
 
Pwa.pptx
Harish Karthick
 
Getting Started with Progressive Web Apps
Bill Stavroulakis
 
Progressive web apps
Akshay Sharma
 
Windows Store Apps: Tips & Tricks
Robert MacLean
 
Progressive Web Apps - Quick Guide to Explore
eLuminous Technologies Pvt. Ltd.
 
Progressive Web App
Padmaashree K
 

Viewers also liked (20)

PDF
Introduction to AngularJS - More Than Just Data Binding
Logical Advantage
 
PDF
Introduction to AngularJS
Yoann Gotthilf
 
PDF
Introduction to AngularJS
Jumping Bean
 
PPT
AngularJS and SPA
Lorenzo Dematté
 
PDF
A gently introduction to AngularJS
Gregor Woiwode
 
PDF
A 20 minute introduction to AngularJS for XPage developers
Mark Leusink
 
PDF
Ionic Crash Course! Hack-a-ton SF
Lukas Ruebbelke
 
PDF
Introduction to AngularJS
Aldo Pizzagalli
 
PDF
Introduction of angular js
Tamer Solieman
 
PDF
Zapatos Perfectos Para Sus Extravagantes Vestidos De Quinceaneras
festiverapture614
 
DOC
Monohybrid Cross WS
lightrf
 
PPT
Презентація дня здоров`я в школі
Наталія Slavbibl4
 
PDF
IPMPubslist
Kerry Beane
 
PPTX
Crear un blogpulga
Lorraine Juarez
 
PDF
OctoberMessenger
Amber Vanderburg
 
PPTX
Walter Hurst - Sabbioneta, Italy, An Intersection of Shakespeare, A Midsummer...
ShakespeareOxfordFellowship
 
DOCX
Industrial preparation of ammonia 1
neethulalmini
 
PPT
#PiedzivojumuStasti IrenaFridensteina Sakums
Karlis Apkalns
 
PPTX
NoSQL with ASP.NET MVC
Manoj Bandara
 
PDF
Elixirだ 第1回強化版 後半
Joe_noh
 
Introduction to AngularJS - More Than Just Data Binding
Logical Advantage
 
Introduction to AngularJS
Yoann Gotthilf
 
Introduction to AngularJS
Jumping Bean
 
AngularJS and SPA
Lorenzo Dematté
 
A gently introduction to AngularJS
Gregor Woiwode
 
A 20 minute introduction to AngularJS for XPage developers
Mark Leusink
 
Ionic Crash Course! Hack-a-ton SF
Lukas Ruebbelke
 
Introduction to AngularJS
Aldo Pizzagalli
 
Introduction of angular js
Tamer Solieman
 
Zapatos Perfectos Para Sus Extravagantes Vestidos De Quinceaneras
festiverapture614
 
Monohybrid Cross WS
lightrf
 
Презентація дня здоров`я в школі
Наталія Slavbibl4
 
IPMPubslist
Kerry Beane
 
Crear un blogpulga
Lorraine Juarez
 
OctoberMessenger
Amber Vanderburg
 
Walter Hurst - Sabbioneta, Italy, An Intersection of Shakespeare, A Midsummer...
ShakespeareOxfordFellowship
 
Industrial preparation of ammonia 1
neethulalmini
 
#PiedzivojumuStasti IrenaFridensteina Sakums
Karlis Apkalns
 
NoSQL with ASP.NET MVC
Manoj Bandara
 
Elixirだ 第1回強化版 後半
Joe_noh
 
Ad

Similar to Introduction to AngularJS (20)

PPTX
Angular JS, A dive to concepts
Abhishek Sur
 
PPTX
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
PPTX
Angularjs basic part01
Mohd Abdul Baquee
 
PPTX
AngularJS is awesome
Eusebiu Schipor
 
PPTX
Angular JS - Introduction
Sagar Acharya
 
PDF
AngularJS A comprehensive beginner s guide to angular js 3nd Edition Rufus St...
vivaanpulcha
 
PPTX
Angular js introduction
Praveen Gubbala
 
PPTX
AngularJS Training in India with Certification (Best Course 2024)
IT DESK INDIA
 
PPTX
Introduction to AngularJS Framework
Raveendra R
 
PPTX
Introduction to AngularJS
Collaboration Technologies
 
PPTX
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
PPTX
Angular js presentation at Datacom
David Xi Peng Yang
 
PPTX
Exploring AngularJS - Liju Pillai
Liju Pillai
 
PPTX
Angular Javascript Tutorial with command
ssuser42b933
 
PPTX
Angular JS - KNOWARTH
KNOWARTH Technologies
 
PPTX
Valentine with Angular js - Introduction
Senthil Kumar
 
DOCX
angularjs_tutorial.docx
telegramvip
 
PDF
AngularJS for Beginners
Edureka!
 
PPTX
The Basics Angular JS
OrisysIndia
 
PDF
Angular.js - An introduction for the unitiated
thehoagie
 
Angular JS, A dive to concepts
Abhishek Sur
 
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
Angularjs basic part01
Mohd Abdul Baquee
 
AngularJS is awesome
Eusebiu Schipor
 
Angular JS - Introduction
Sagar Acharya
 
AngularJS A comprehensive beginner s guide to angular js 3nd Edition Rufus St...
vivaanpulcha
 
Angular js introduction
Praveen Gubbala
 
AngularJS Training in India with Certification (Best Course 2024)
IT DESK INDIA
 
Introduction to AngularJS Framework
Raveendra R
 
Introduction to AngularJS
Collaboration Technologies
 
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
Angular js presentation at Datacom
David Xi Peng Yang
 
Exploring AngularJS - Liju Pillai
Liju Pillai
 
Angular Javascript Tutorial with command
ssuser42b933
 
Angular JS - KNOWARTH
KNOWARTH Technologies
 
Valentine with Angular js - Introduction
Senthil Kumar
 
angularjs_tutorial.docx
telegramvip
 
AngularJS for Beginners
Edureka!
 
The Basics Angular JS
OrisysIndia
 
Angular.js - An introduction for the unitiated
thehoagie
 
Ad

Recently uploaded (20)

PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PPTX
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
PPT
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
PPTX
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
PDF
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
PDF
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PPTX
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
July Patch Tuesday
Ivanti
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
PDF
Français Patch Tuesday - Juillet
Ivanti
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Building and Operating a Private Cloud with CloudStack and LINBIT CloudStack ...
ShapeBlue
 
Interview paper part 3, It is based on Interview Prep
SoumyadeepGhosh39
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
SWEBOK Guide and Software Services Engineering Education
Hironori Washizaki
 
UiPath Academic Alliance Educator Panels: Session 2 - Business Analyst Content
DianaGray10
 
CIFDAQ Weekly Market Wrap for 11th July 2025
CIFDAQ
 
Apache CloudStack 201: Let's Design & Build an IaaS Cloud
ShapeBlue
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
MSP360 Backup Scheduling and Retention Best Practices.pptx
MSP360
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
July Patch Tuesday
Ivanti
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Smart Air Quality Monitoring with Serrax AQM190 LITE
SERRAX TECHNOLOGIES LLP
 
Français Patch Tuesday - Juillet
Ivanti
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 

Introduction to AngularJS