SlideShare a Scribd company logo
Hiten Pratap Singh
http://github.com/hitenpratap
http://hprog99.wordpress.com
AngularJS from novice to
professional
Agenda
1. What is AngularJS?
2. Core features
3. It's working
4. How to start working with it?
5. Controller
6. AngularJS directives
7. Expression
8. Forms
9. Services
Agenda
10. Modules
9. Routing
10. Scope
11. Dependency Injection
12. Filters
13. Advantages and disadvantages
14. References
15. Q/A
16. Quiz
What's AngularJS?
AngularJS (commonly referred to as "Angular") is an
open-source web application framework maintained by
Google to address many of the challenges encountered
in developing single-page applications. It aims to simplify
both the development and the testing of such
applications by providing a framework for client-side
model–view–controller (MVC) – As per Wikipedia.
Core features
1.Two way data binding
2.Templates
3.Model view controller(MVC)
4.Dependency Injection
Two Way Data Binding
Templates
 In AngularJS, a template is just plain-old-HTML. The
HTML vocabulary is extended, to contain instructions
on how the model should be projected into the view.
 The HTML templates are parsed by the browser into
the DOM. The DOM then becomes the input to the
AngularJS compiler. AngularJS traverses the DOM
template for rendering instructions, which are called
directives. Collectively, the directives are responsible
for setting up the data-binding for your application
view.
Model View Controller(MVC or MVVC)
Dependency Injection
AngularJS Working
Hello World - AngularJS
AngularJS Controller
AngularJS Directives
 ng-app: Declares an element as root element
 ng-bind: Automatically changes the text of HTML element
 ng-model: Similar to ng-bind but allow two way binding
 ng-class: Allow class attribute to be dynaically loaded
 ng-controller: Specifies javascript controller class
 ng-repeat: Instantiate an element once per item from a collection
 ng-show & ng-hide: Conditionally show or hide an element
 ng-switch: Conditionally instantiate one template from a list
 ng-view: Rendering templates driven by specific controllers
 ng-if: Simple if-else attribute that we know from ever!
AngularJS Expression
Angular Form Properties $valid, $invalid, $pristine, $dirty
Angular also provides classes on the form and its inputs so that
you can style each state accordingly.
AngularJS Services
In Angular a service is a function or an object and is used to share data
and/or behavior across controllers, directives, filters, other services etc. A
service is treated as a singleton, that is there is only one instance of a
specific service available during the whole lifetime of the Angular
application. This is different from e.g. a controller of which many
instances can be created.
The easiest way is to use the Service recipe of an angular module.
var app = angular.module('app', []);
app.service('some-service', function(){…});
Other two methods/way to create service are:
1. The factory recipe
2.The provider recipe
AngularJS Module
AngularJS Routing
AngularJS Scope
AngularJS Dependency Injection
AngularJS has a built-in dependency injection subsystem that
helps the developer by making the application easier to develop,
understand, and test.
Dependency Injection (DI) allows you to ask for your
dependencies, rather than having to go look for them or make
them yourself. Think of it as a way of saying "Hey I need X', and
the DI is responsible for creating and providing it for you.
To gain access to core AngularJS services, it is simply a matter of
adding that service as a parameter; AngularJS will detect that you
need that service and provide an instance for you.
AngularJS Filters
Angular exposes a simple API for creating a filter. Just as you
would declare a controller with app.controller(‘myCtrl',
function(){});, you can create a new filter by appending
.filter(‘filterName', function(){}) to your Angular app.
AngularJS Advantages
 Super fast development
 Makes developing SPA easy
 Awesome performance
 Make apps scalable
 Data binding and DOM manipulation
AngularJS Disadvantages
 Good for I/O driven apps only(not games)
 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.
 The lifecycle of Angular application is complex, and to
master it you really need to read the code.
References
 AngularJS Docs(https://docs.angularjs.org/tutorial)
 AngularJS API Reference(https://docs.angularjs.org/api)
 AngularJS Code School(http://angular.codeschool.com/)
 ng-newsletter(http://www.ng-newsletter.com/books/)
Discussion Session
QUERIES ?
Hiten Pratap Singh
http://github.com/hitenpratap
http://hprog99.wordpress.com
Quiz Time
Anyone have any suggestons about what it should be? If no
then
We'll build an online contact manager just like
Google Contact.

More Related Content

What's hot (20)

PPTX
Angular 5 presentation for beginners
Imran Qasim
 
PPTX
Angular overview
Thanvilahari
 
PPTX
Angular tutorial
Rohit Gupta
 
PDF
Angular - Chapter 1 - Introduction
WebStackAcademy
 
PPTX
Angular 14.pptx
MohaNedGhawar
 
PPTX
Presentation on "An Introduction to ReactJS"
Flipkart
 
PPT
Angular 8
Sunil OS
 
PDF
Angular - Chapter 7 - HTTP Services
WebStackAcademy
 
PPTX
Introduction to angular with a simple but complete project
Jadson Santos
 
PPTX
Angular kickstart slideshare
SaleemMalik52
 
PDF
Angular js
Knoldus Inc.
 
PDF
Model View Controller (MVC)
Javier Antonio Humarán Peñuñuri
 
PPTX
[Final] ReactJS presentation
洪 鹏发
 
PDF
Difference Between Angular and AngularJS.pdf
Your Team in India
 
PPTX
Android User Interface
Shakib Hasan Sumon
 
PPTX
Introduction to React JS
Arnold Asllani
 
ODP
Angular 6 - The Complete Guide
Sam Dias
 
PPT
ASP.NET MVC Presentation
ivpol
 
PPT
Android lifecycle
Kumar
 
PPTX
Angular modules in depth
Christoffer Noring
 
Angular 5 presentation for beginners
Imran Qasim
 
Angular overview
Thanvilahari
 
Angular tutorial
Rohit Gupta
 
Angular - Chapter 1 - Introduction
WebStackAcademy
 
Angular 14.pptx
MohaNedGhawar
 
Presentation on "An Introduction to ReactJS"
Flipkart
 
Angular 8
Sunil OS
 
Angular - Chapter 7 - HTTP Services
WebStackAcademy
 
Introduction to angular with a simple but complete project
Jadson Santos
 
Angular kickstart slideshare
SaleemMalik52
 
Angular js
Knoldus Inc.
 
Model View Controller (MVC)
Javier Antonio Humarán Peñuñuri
 
[Final] ReactJS presentation
洪 鹏发
 
Difference Between Angular and AngularJS.pdf
Your Team in India
 
Android User Interface
Shakib Hasan Sumon
 
Introduction to React JS
Arnold Asllani
 
Angular 6 - The Complete Guide
Sam Dias
 
ASP.NET MVC Presentation
ivpol
 
Android lifecycle
Kumar
 
Angular modules in depth
Christoffer Noring
 

Similar to AngularJS (20)

PPTX
Angular js
Baldeep Sohal
 
PPTX
Angular js
Ramakrishna kapa
 
PPTX
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
PPTX
Angular Presentation
Adam Moore
 
PPTX
Intoduction to Angularjs
Gaurav Agrawal
 
PDF
Everything You Need To Know About AngularJS
Sina Mirhejazi
 
PPTX
Angular workshop - Full Development Guide
Nitin Giri
 
PDF
AngularJS: Overview & Key Features
Mohamad Al Asmar
 
PPTX
Angular js
Behind D Walls
 
PDF
AngularJS Workshop
Gianluca Cacace
 
PPTX
Introduction to AngularJs
murtazahaveliwala
 
PPTX
The AngularJS way
Boyan Mihaylov
 
PDF
AngularJS By Vipin
Vipin Mundayad
 
PPTX
Angular patterns
Premkumar M
 
PPT
Coffee@DBG - Exploring Angular JS
Deepu S Nath
 
PDF
AngularJS Basics
Ravi Mone
 
PPTX
Ajs ppt
Avyaya Tarnaka
 
PPTX
AngularJs
syam kumar kk
 
PPTX
Angular js 1.0-fundamentals
Venkatesh Narayanan
 
Angular js
Baldeep Sohal
 
Angular js
Ramakrishna kapa
 
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
Angular Presentation
Adam Moore
 
Intoduction to Angularjs
Gaurav Agrawal
 
Everything You Need To Know About AngularJS
Sina Mirhejazi
 
Angular workshop - Full Development Guide
Nitin Giri
 
AngularJS: Overview & Key Features
Mohamad Al Asmar
 
Angular js
Behind D Walls
 
AngularJS Workshop
Gianluca Cacace
 
Introduction to AngularJs
murtazahaveliwala
 
The AngularJS way
Boyan Mihaylov
 
AngularJS By Vipin
Vipin Mundayad
 
Angular patterns
Premkumar M
 
Coffee@DBG - Exploring Angular JS
Deepu S Nath
 
AngularJS Basics
Ravi Mone
 
AngularJs
syam kumar kk
 
Angular js 1.0-fundamentals
Venkatesh Narayanan
 
Ad

More from NexThoughts Technologies (20)

PDF
Alexa skill
NexThoughts Technologies
 
PDF
Docker & kubernetes
NexThoughts Technologies
 
PDF
Apache commons
NexThoughts Technologies
 
PDF
Microservice Architecture using Spring Boot with React & Redux
NexThoughts Technologies
 
PDF
Solid Principles
NexThoughts Technologies
 
PDF
Introduction to TypeScript
NexThoughts Technologies
 
PDF
Smart Contract samples
NexThoughts Technologies
 
PDF
My Doc of geth
NexThoughts Technologies
 
PDF
Geth important commands
NexThoughts Technologies
 
PDF
Ethereum genesis
NexThoughts Technologies
 
PPTX
Springboot Microservices
NexThoughts Technologies
 
PDF
An Introduction to Redux
NexThoughts Technologies
 
PPTX
Google authentication
NexThoughts Technologies
 
Docker & kubernetes
NexThoughts Technologies
 
Apache commons
NexThoughts Technologies
 
Microservice Architecture using Spring Boot with React & Redux
NexThoughts Technologies
 
Solid Principles
NexThoughts Technologies
 
Introduction to TypeScript
NexThoughts Technologies
 
Smart Contract samples
NexThoughts Technologies
 
My Doc of geth
NexThoughts Technologies
 
Geth important commands
NexThoughts Technologies
 
Ethereum genesis
NexThoughts Technologies
 
Springboot Microservices
NexThoughts Technologies
 
An Introduction to Redux
NexThoughts Technologies
 
Google authentication
NexThoughts Technologies
 
Ad

Recently uploaded (20)

PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
DOCX
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Advancing WebDriver BiDi support in WebKit
Igalia
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
Using FME to Develop Self-Service CAD Applications for a Major UK Police Force
Safe Software
 
Cryptography Quiz: test your knowledge of this important security concept.
Rajni Bhardwaj Grover
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Advancing WebDriver BiDi support in WebKit
Igalia
 

AngularJS

  • 2. AngularJS from novice to professional
  • 3. Agenda 1. What is AngularJS? 2. Core features 3. It's working 4. How to start working with it? 5. Controller 6. AngularJS directives 7. Expression 8. Forms 9. Services
  • 4. Agenda 10. Modules 9. Routing 10. Scope 11. Dependency Injection 12. Filters 13. Advantages and disadvantages 14. References 15. Q/A 16. Quiz
  • 5. What's AngularJS? AngularJS (commonly referred to as "Angular") is an open-source web application framework maintained by Google to address many of the challenges encountered in developing single-page applications. It aims to simplify both the development and the testing of such applications by providing a framework for client-side model–view–controller (MVC) – As per Wikipedia.
  • 6. Core features 1.Two way data binding 2.Templates 3.Model view controller(MVC) 4.Dependency Injection
  • 7. Two Way Data Binding
  • 8. Templates  In AngularJS, a template is just plain-old-HTML. The HTML vocabulary is extended, to contain instructions on how the model should be projected into the view.  The HTML templates are parsed by the browser into the DOM. The DOM then becomes the input to the AngularJS compiler. AngularJS traverses the DOM template for rendering instructions, which are called directives. Collectively, the directives are responsible for setting up the data-binding for your application view.
  • 12. Hello World - AngularJS
  • 14. AngularJS Directives  ng-app: Declares an element as root element  ng-bind: Automatically changes the text of HTML element  ng-model: Similar to ng-bind but allow two way binding  ng-class: Allow class attribute to be dynaically loaded  ng-controller: Specifies javascript controller class  ng-repeat: Instantiate an element once per item from a collection  ng-show & ng-hide: Conditionally show or hide an element  ng-switch: Conditionally instantiate one template from a list  ng-view: Rendering templates driven by specific controllers  ng-if: Simple if-else attribute that we know from ever!
  • 16. Angular Form Properties $valid, $invalid, $pristine, $dirty Angular also provides classes on the form and its inputs so that you can style each state accordingly.
  • 17. AngularJS Services In Angular a service is a function or an object and is used to share data and/or behavior across controllers, directives, filters, other services etc. A service is treated as a singleton, that is there is only one instance of a specific service available during the whole lifetime of the Angular application. This is different from e.g. a controller of which many instances can be created. The easiest way is to use the Service recipe of an angular module. var app = angular.module('app', []); app.service('some-service', function(){…}); Other two methods/way to create service are: 1. The factory recipe 2.The provider recipe
  • 21. AngularJS Dependency Injection AngularJS has a built-in dependency injection subsystem that helps the developer by making the application easier to develop, understand, and test. Dependency Injection (DI) allows you to ask for your dependencies, rather than having to go look for them or make them yourself. Think of it as a way of saying "Hey I need X', and the DI is responsible for creating and providing it for you. To gain access to core AngularJS services, it is simply a matter of adding that service as a parameter; AngularJS will detect that you need that service and provide an instance for you.
  • 22. AngularJS Filters Angular exposes a simple API for creating a filter. Just as you would declare a controller with app.controller(‘myCtrl', function(){});, you can create a new filter by appending .filter(‘filterName', function(){}) to your Angular app.
  • 23. AngularJS Advantages  Super fast development  Makes developing SPA easy  Awesome performance  Make apps scalable  Data binding and DOM manipulation
  • 24. AngularJS Disadvantages  Good for I/O driven apps only(not games)  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.  The lifecycle of Angular application is complex, and to master it you really need to read the code.
  • 25. References  AngularJS Docs(https://docs.angularjs.org/tutorial)  AngularJS API Reference(https://docs.angularjs.org/api)  AngularJS Code School(http://angular.codeschool.com/)  ng-newsletter(http://www.ng-newsletter.com/books/)
  • 26. Discussion Session QUERIES ? Hiten Pratap Singh http://github.com/hitenpratap http://hprog99.wordpress.com
  • 27. Quiz Time Anyone have any suggestons about what it should be? If no then We'll build an online contact manager just like Google Contact.