SlideShare a Scribd company logo
View AngularJS course details at www.edureka.co/angular-js
Getting Started With AngularJS
Slide 2 www.edureka.co/angular-jsSlide 2Slide 2Slide 2
 Why should we use AngularJS?
 What is AngularJS?
 Big Brands Using AngularJS
 AngularJS Features
 AngularJS MVC & MVW Architecture
 Basic AngularJS Program
 Directives and Filters
 What is Single Page Application?
 How to Build a Responsive Single Page Application?
What will you learn today?
Slide 3 www.edureka.co/angular-jsSlide 3Slide 3Slide 3
A Web Page
Web Page
DOM Tree of the HTML document
html
head body
h1title
HTML Markup
Slide 4 www.edureka.co/angular-jsSlide 4Slide 4Slide 4
What the heck is DOM ?
DOM is a structured representation of a document and it provides a programming interface which allows you to
change the style and content of the web page
Slide 5 www.edureka.co/angular-jsSlide 5Slide 5Slide 5
Deep Thought …
So it means If I can
manipulate the DOM,
I would be able to
change page
content, but how
would I do that ?
Slide 6 www.edureka.co/angular-jsSlide 6Slide 6Slide 6
Traditional Way of Manipulating DOM - JavaScript
on clicking Manipulate DOM button
Manipulating DOM (webpage) with JavaScript
Slide 7 www.edureka.co/angular-jsSlide 7Slide 7Slide 7
Deep Thought …
I remember
jQuery can do
DOM manipulation
pretty easily !
Slide 8 www.edureka.co/angular-jsSlide 8Slide 8Slide 8
Traditional Way of Manipulating DOM - jQuery
on clicking Manipulate DOM button
Manipulating DOM (webpage) with jQuery
Slide 9 www.edureka.co/angular-jsSlide 9Slide 9Slide 9
Manipulating DOM - AngularJS
 Traditionally, the view modifies the DOM to present data and manipulates the DOM (or invokes jQuery) to
add behavior
 AngularJS puts all the DOM manipulation code into directives, thus easily separating that code out from
the view and making it available as standalone reusable units
 This helps the UI developer to concentrate fully on the user interface and the application developer to
work separately on DOM manipulations and JQuery calls.
whereas…
Slide 10 www.edureka.co/angular-jsSlide 10Slide 10Slide 10
Static
DOM
Dynamic
DOM (view)
DOM Content
Loaded Event
ng-app=“application name”
$injector
$compile $rootscope
$compile(dom, $rootscope)
Browser AngularJS
HTML
AngularJS Way
Slide 11 www.edureka.co/angular-jsSlide 11Slide 11Slide 11
Web App URI request is
made
Angular.js is Downloaded
Bootstrap callback is
registered by AngularJS
HTML page is fully
downloaded and callback is
executed
Angular traverses the DOM tree
to find ng-app directive
Angular locates the element containing
ng-app directive and defines it as the
root of app DOM
Dependency Injection is
created by an Injector
Injector creates the root scope object
($rootScope) that will become the
context for app’s model
Angular compiles the DOM by starting at the ng-
app root, then processes directives and bindings
as it work its way down the tree
Once bootstrapped, Angular waits
for browser events that might
change the model
When an event occurs, Angular
checks for a change to the model
If changes to the model are found,
Angular updates the affected bindings
within the view
AngularJS Way
Slide 12 www.edureka.co/angular-jsSlide 12Slide 12Slide 12
Can you guess, Who invented AngularJS ?
Slide 13 www.edureka.co/angular-jsSlide 13Slide 13Slide 13
AngularJS Inventors
AngularJS was originally developed in 2009 by Misko
Hevery and Adam Abrons at Brat Tech LLC, firstly
named as GetAngular
<html> enhanced for web applications
Slide 14 www.edureka.co/angular-jsSlide 14Slide 14Slide 14
Big Brands Using AngularJS
YouTube application for Sony's PlayStation 3
Go To : www.madewithangular.com
Slide 15 www.edureka.co/angular-jsSlide 15Slide 15Slide 15
Hence The Growth In Job Trends
AngularJS Features
Slide 17 www.edureka.co/angular-js
Features of AngularJS
MVC & MVW
Slide 19 www.edureka.co/angular-jsSlide 19Slide 19Slide 19
MVC & MVW Way of AngularJS
Model View
Directive Unit TestController
Whatever
HTML
CSS
MVC MVW
Model View
Controller
HTML
CSS
JavaScript
Services
2 way data binding 2 way data binding
AngularJS First Program
Slide 21 www.edureka.co/angular-jsSlide 21Slide 21Slide 21
Steps to create an AngularJS Application
AngularJS: Your First Program
1. Include
AngularJS
Slide 22 www.edureka.co/angular-jsSlide 22Slide 22Slide 22
Steps to create an AngularJS Application
AngularJS: Your First Program
2. Bootstrap the App
Slide 23 www.edureka.co/angular-jsSlide 23Slide 23Slide 23
Steps to create an AngularJS Application
AngularJS: Your First Program
3. Create the
Controller
Slide 24 www.edureka.co/angular-jsSlide 24Slide 24Slide 24
Steps to create an AngularJS Application
AngularJS: Your First Program
4. Create the
View
Slide 25 www.edureka.co/angular-jsSlide 25Slide 25Slide 25
AngularJS Directives
 The process of rendering of HTML inside the AngularJS application are controlled by Directives
 Directives guide the HTML compiler to control the DOM elements by attaching specific behavior to the elements
Directive
Directive
Slide 26 www.edureka.co/angular-jsSlide 26
Built in Directives
Name Description
ngJq Use this directive to force the angular.element library. This should be used to force either Jqlite by
leaving ng-jq blank or setting the name of the jQuery variable under window (eg. jQuery)
ngApp Use this directive to auto-bootstrap an AngularJS application. The ngApp directive designates
the root elementof the application and is typically placed near the root element of the page - e.g.
on the <body> or <html> tags
a Modifies the default behavior of the html A tag so that the default action is prevented when the
href attribute is empty
ngDisabled This directive sets the disabled attribute on the element if
the expression inside ngDisabled evaluates to truthy
form Directive that instantiates FormController
ngClass The ngClass directive allows you to dynamically set CSS classes on an HTML element by
databinding an expression that represents all classes to be added
ngController The ngController directive attaches a controller class to the view. This is a key aspect of how
angular supports the principles behind the Model-View-Controller design pattern
For rest of the directives refer https://docs.angularjs.org/api/ng/directive
Slide 27 www.edureka.co/angular-jsSlide 27
AngularJS Filters
 It formats the value of an expression for display to the user
 Filters in view templates can be used with the following
syntax
» {{ expression | filter }}
 Filters are generally injected when used with controllers,
services and directives
 With filters data can be organized to meet certain criteria
UpperCase
LowerCase
Currency
{{entity.name() | uppercase}}
{{entity.amount() | currency}}
{{entity.name() | lowercase}}
Slide 28 www.edureka.co/angular-jsSlide 28
Filter Types
 Generally used filter types
Name Usage
uppercase Change case of string to uppercase
lowercase Change case of string to lowercase
currency Formats string to currency format
number Formats numerical value
json Json representation
date Formats date
filter Filters array based on criteria
orderBy Orders array based in criteria
limitTo Limits number of objects
Slide 29 www.edureka.co/angular-jsSlide 29Slide 29Slide 29
Single Page Application
 Single-Page Applications (SPAs) are Web apps that load a single HTML page and dynamically update that
page as the user interacts with the app
 In a Single Page Application or SPA the page never reloads, though parts of the page may refresh. This
reduces the round trips to the server to a minimum
Client Side
Routing
Client Side
Rendering
How To Build Responsive SPA Using
AngularJS ?
Slide 31 www.edureka.co/angular-jsSlide 31Slide 31Slide 31
Building Highly Responsive Single Page Application
 Usecase : Build a User Management Application
 Prerequisite :
» Text Editor (sublime or notepadd ++)
» Latest browser (Firefox or Chrome)
» Installed NodeJS (server)
» Mongo (To store userinfo)
 Project Specifications :
» Login to the Application
» Create a new user
» View Users List
» Update a existing user
» Delete user
» Signout
Slide 32 www.edureka.co/angular-jsSlide 32Slide 32Slide 32
Certifications
Get certified in AngularJS by Edureka
Edureka's AngularJS course:
• It covers the fundamental concepts like directives, routes, filters, services and factors which helps to build rich user interface
web applications in AngularJS.
• It helps you boost your web development skills and become a sought after SPA (single page application) developer. You will
learn the highly efficient Angular features like data binding, scope management, form validation, routing, i18n & lot more.
• Get to work on a To-Do List App Project towards the end of the course, which gives you complete insights on the Node.js
framework.
• Online Live Courses: 21 hours
• Assignments: 20 hours
• Project: 20 hours
• Lifetime Access + 24 X 7 Support
Go to www.edureka.co/angular-js
Thank You
Questions/Queries/Feedback
Recording and presentation will be made available to you within 24 hours

More Related Content

PDF
Deep Dive into AngularJS Javascript Framework
Edureka!
 
PDF
Implementing Web Services In Java
Edureka!
 
PDF
Develop Mobile App Using Android Lollipop
Edureka!
 
PDF
Animation And Testing In AngularJS
Edureka!
 
PDF
Learn How to Animate your Android App
Edureka!
 
PDF
Webinar: Front End Web Development - Trendy Web Designs Using HTML5
Edureka!
 
PDF
Using Android 5.0 Lollipop
Edureka!
 
PDF
Design patterns 1july
Edureka!
 
Deep Dive into AngularJS Javascript Framework
Edureka!
 
Implementing Web Services In Java
Edureka!
 
Develop Mobile App Using Android Lollipop
Edureka!
 
Animation And Testing In AngularJS
Edureka!
 
Learn How to Animate your Android App
Edureka!
 
Webinar: Front End Web Development - Trendy Web Designs Using HTML5
Edureka!
 
Using Android 5.0 Lollipop
Edureka!
 
Design patterns 1july
Edureka!
 

What's hot (20)

PPTX
Live Demo : Trending Angular JS Featues
Edureka!
 
PDF
Webinar on Angular JS titled 'Develop Responsive Single Page Application'
Edureka!
 
PDF
Webinar: Microsoft .NET Framework : An IntelliSense Way of Web Development
Edureka!
 
PDF
AngularJS : Superheroic JavaScript MVW Framework
Edureka!
 
PDF
Angular JS - Develop Responsive Single Page Application
Edureka!
 
PDF
Android development 1july
Edureka!
 
PDF
iOS Development Using Swift 2
Edureka!
 
PDF
Webinar: Microsoft SharePoint-The Ultimate Enterprise Collaboration Platform
Edureka!
 
PDF
Design Patterns : Solution to Software Design Problems
Edureka!
 
PPTX
Java/J2EE & SOA
Edureka!
 
PDF
Introduction to Android Development
Edureka!
 
PDF
Design Patterns : The Ultimate Blueprint for Software
Edureka!
 
PDF
Day In A Life Of A Node.js Developer
Edureka!
 
PDF
AngularJS : Superheroic Javascript MVW Framework
Edureka!
 
PDF
Implementing auto complete using JQuery
Bhushan Mulmule
 
PPTX
Angular tutorial
Rohit Gupta
 
PDF
Design Patterns - The Ultimate Blueprint for Software
Edureka!
 
PDF
An introduction to AngularJS
Yogesh singh
 
PDF
How to optimize the performance of vue js large application structure
Katy Slemon
 
PDF
jfx
aprydwi
 
Live Demo : Trending Angular JS Featues
Edureka!
 
Webinar on Angular JS titled 'Develop Responsive Single Page Application'
Edureka!
 
Webinar: Microsoft .NET Framework : An IntelliSense Way of Web Development
Edureka!
 
AngularJS : Superheroic JavaScript MVW Framework
Edureka!
 
Angular JS - Develop Responsive Single Page Application
Edureka!
 
Android development 1july
Edureka!
 
iOS Development Using Swift 2
Edureka!
 
Webinar: Microsoft SharePoint-The Ultimate Enterprise Collaboration Platform
Edureka!
 
Design Patterns : Solution to Software Design Problems
Edureka!
 
Java/J2EE & SOA
Edureka!
 
Introduction to Android Development
Edureka!
 
Design Patterns : The Ultimate Blueprint for Software
Edureka!
 
Day In A Life Of A Node.js Developer
Edureka!
 
AngularJS : Superheroic Javascript MVW Framework
Edureka!
 
Implementing auto complete using JQuery
Bhushan Mulmule
 
Angular tutorial
Rohit Gupta
 
Design Patterns - The Ultimate Blueprint for Software
Edureka!
 
An introduction to AngularJS
Yogesh singh
 
How to optimize the performance of vue js large application structure
Katy Slemon
 
jfx
aprydwi
 
Ad

Viewers also liked (12)

PDF
Get AngularJS Started!
Dzmitry Ivashutsin
 
PDF
A Work Day Of A Web Developer
Edureka!
 
PPT
Dynamic Application Development by NodeJS ,AngularJS with OrientDB
Apaichon Punopas
 
PPTX
AngularJS intro
dizabl
 
PPTX
2015 06-27 use-r2015_dendextend_tal_galili_01
Tal Galili
 
PPTX
Python for Big Data Analytics
Edureka!
 
PPTX
Python for Big Data Analytics
Edureka!
 
PPTX
How to crack CFA level 1 Exam
Edureka!
 
PDF
K-Means, its Variants and its Applications
Varad Meru
 
PDF
Getting Started with Angular 2
FITC
 
PPTX
Application of Clustering in Data Science using Real-life Examples
Edureka!
 
PDF
29 Essential AngularJS Interview Questions
Arc & Codementor
 
Get AngularJS Started!
Dzmitry Ivashutsin
 
A Work Day Of A Web Developer
Edureka!
 
Dynamic Application Development by NodeJS ,AngularJS with OrientDB
Apaichon Punopas
 
AngularJS intro
dizabl
 
2015 06-27 use-r2015_dendextend_tal_galili_01
Tal Galili
 
Python for Big Data Analytics
Edureka!
 
Python for Big Data Analytics
Edureka!
 
How to crack CFA level 1 Exam
Edureka!
 
K-Means, its Variants and its Applications
Varad Meru
 
Getting Started with Angular 2
FITC
 
Application of Clustering in Data Science using Real-life Examples
Edureka!
 
29 Essential AngularJS Interview Questions
Arc & Codementor
 
Ad

Similar to Getting Started With AngularJS (20)

PDF
AngularJS By Vipin
Vipin Mundayad
 
DOCX
angularjs_tutorial.docx
telegramvip
 
PPTX
Training On Angular Js
Mahima Radhakrishnan
 
PPTX
Angular js
vu van quyet
 
PPTX
Introduction to AngularJS
Collaboration Technologies
 
PPTX
Introduction to AngularJS Framework
Raveendra R
 
PPTX
Angularjs on line training
Jahan Murugassan
 
PPTX
Intoduction to Angularjs
Gaurav Agrawal
 
PPTX
GDG Atlanta - Angular.js Demo and Workshop
Drew Morris
 
PPTX
Angular js workshop
Rolands Krumbergs
 
PPTX
A Big Picture Of AngularJS
Nitin Pandit
 
PDF
AngularJS - A JavaScript Framework
Tekki Web Solutions Pvt. Ltd.
 
PPTX
Angular Javascript Tutorial with command
ssuser42b933
 
PDF
One Weekend With AngularJS
Yashobanta Bai
 
PDF
Fundamentals and Implementations of Angular JS with renowned Technology Platf...
OptiSol Business Solutions
 
PPTX
Angular js slides
Amr Abd El Latief
 
PPTX
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
PDF
A white paper on Fundamentals and Implementations of Angular JS
OptiSol Business Solutions
 
PPSX
Angular js
Arun Somu Panneerselvam
 
PPTX
What are the key distinctions between Angular and AngularJS?
Albiorix Technology
 
AngularJS By Vipin
Vipin Mundayad
 
angularjs_tutorial.docx
telegramvip
 
Training On Angular Js
Mahima Radhakrishnan
 
Angular js
vu van quyet
 
Introduction to AngularJS
Collaboration Technologies
 
Introduction to AngularJS Framework
Raveendra R
 
Angularjs on line training
Jahan Murugassan
 
Intoduction to Angularjs
Gaurav Agrawal
 
GDG Atlanta - Angular.js Demo and Workshop
Drew Morris
 
Angular js workshop
Rolands Krumbergs
 
A Big Picture Of AngularJS
Nitin Pandit
 
AngularJS - A JavaScript Framework
Tekki Web Solutions Pvt. Ltd.
 
Angular Javascript Tutorial with command
ssuser42b933
 
One Weekend With AngularJS
Yashobanta Bai
 
Fundamentals and Implementations of Angular JS with renowned Technology Platf...
OptiSol Business Solutions
 
Angular js slides
Amr Abd El Latief
 
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
A white paper on Fundamentals and Implementations of Angular JS
OptiSol Business Solutions
 
What are the key distinctions between Angular and AngularJS?
Albiorix Technology
 

More from Edureka! (20)

PDF
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
PDF
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
PDF
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
PDF
Tableau Tutorial for Data Science | Edureka
Edureka!
 
PDF
Python Programming Tutorial | Edureka
Edureka!
 
PDF
Top 5 PMP Certifications | Edureka
Edureka!
 
PDF
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
PDF
Linux Mint Tutorial | Edureka
Edureka!
 
PDF
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
PDF
Importance of Digital Marketing | Edureka
Edureka!
 
PDF
RPA in 2020 | Edureka
Edureka!
 
PDF
Email Notifications in Jenkins | Edureka
Edureka!
 
PDF
EA Algorithm in Machine Learning | Edureka
Edureka!
 
PDF
Cognitive AI Tutorial | Edureka
Edureka!
 
PDF
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
PDF
Blue Prism Top Interview Questions | Edureka
Edureka!
 
PDF
Big Data on AWS Tutorial | Edureka
Edureka!
 
PDF
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
PDF
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
PDF
Introduction to DevOps | Edureka
Edureka!
 
What to learn during the 21 days Lockdown | Edureka
Edureka!
 
Top 10 Dying Programming Languages in 2020 | Edureka
Edureka!
 
Top 5 Trending Business Intelligence Tools | Edureka
Edureka!
 
Tableau Tutorial for Data Science | Edureka
Edureka!
 
Python Programming Tutorial | Edureka
Edureka!
 
Top 5 PMP Certifications | Edureka
Edureka!
 
Top Maven Interview Questions in 2020 | Edureka
Edureka!
 
Linux Mint Tutorial | Edureka
Edureka!
 
How to Deploy Java Web App in AWS| Edureka
Edureka!
 
Importance of Digital Marketing | Edureka
Edureka!
 
RPA in 2020 | Edureka
Edureka!
 
Email Notifications in Jenkins | Edureka
Edureka!
 
EA Algorithm in Machine Learning | Edureka
Edureka!
 
Cognitive AI Tutorial | Edureka
Edureka!
 
AWS Cloud Practitioner Tutorial | Edureka
Edureka!
 
Blue Prism Top Interview Questions | Edureka
Edureka!
 
Big Data on AWS Tutorial | Edureka
Edureka!
 
A star algorithm | A* Algorithm in Artificial Intelligence | Edureka
Edureka!
 
Kubernetes Installation on Ubuntu | Edureka
Edureka!
 
Introduction to DevOps | Edureka
Edureka!
 

Recently uploaded (20)

PPTX
Stamford - Community User Group Leaders_ Agentblazer Status, AI Sustainabilit...
Amol Dixit
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PDF
DevOps & Developer Experience Summer BBQ
AUGNYC
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PPTX
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
 
PDF
Software Development Company | KodekX
KodekX
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
Best ERP System for Manufacturing in India | Elite Mindz
Elite Mindz
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
CIFDAQ'S Market Insight: BTC to ETH money in motion
CIFDAQ
 
Stamford - Community User Group Leaders_ Agentblazer Status, AI Sustainabilit...
Amol Dixit
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
Coupa-Overview _Assumptions presentation
annapureddyn
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
DevOps & Developer Experience Summer BBQ
AUGNYC
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
Smart Infrastructure and Automation through IoT Sensors
Rejig Digital
 
Software Development Company | KodekX
KodekX
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
Best ERP System for Manufacturing in India | Elite Mindz
Elite Mindz
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Why Your AI & Cybersecurity Hiring Still Misses the Mark in 2025
Virtual Employee Pvt. Ltd.
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
Doc9.....................................
SofiaCollazos
 
CIFDAQ'S Market Insight: BTC to ETH money in motion
CIFDAQ
 

Getting Started With AngularJS

  • 1. View AngularJS course details at www.edureka.co/angular-js Getting Started With AngularJS
  • 2. Slide 2 www.edureka.co/angular-jsSlide 2Slide 2Slide 2  Why should we use AngularJS?  What is AngularJS?  Big Brands Using AngularJS  AngularJS Features  AngularJS MVC & MVW Architecture  Basic AngularJS Program  Directives and Filters  What is Single Page Application?  How to Build a Responsive Single Page Application? What will you learn today?
  • 3. Slide 3 www.edureka.co/angular-jsSlide 3Slide 3Slide 3 A Web Page Web Page DOM Tree of the HTML document html head body h1title HTML Markup
  • 4. Slide 4 www.edureka.co/angular-jsSlide 4Slide 4Slide 4 What the heck is DOM ? DOM is a structured representation of a document and it provides a programming interface which allows you to change the style and content of the web page
  • 5. Slide 5 www.edureka.co/angular-jsSlide 5Slide 5Slide 5 Deep Thought … So it means If I can manipulate the DOM, I would be able to change page content, but how would I do that ?
  • 6. Slide 6 www.edureka.co/angular-jsSlide 6Slide 6Slide 6 Traditional Way of Manipulating DOM - JavaScript on clicking Manipulate DOM button Manipulating DOM (webpage) with JavaScript
  • 7. Slide 7 www.edureka.co/angular-jsSlide 7Slide 7Slide 7 Deep Thought … I remember jQuery can do DOM manipulation pretty easily !
  • 8. Slide 8 www.edureka.co/angular-jsSlide 8Slide 8Slide 8 Traditional Way of Manipulating DOM - jQuery on clicking Manipulate DOM button Manipulating DOM (webpage) with jQuery
  • 9. Slide 9 www.edureka.co/angular-jsSlide 9Slide 9Slide 9 Manipulating DOM - AngularJS  Traditionally, the view modifies the DOM to present data and manipulates the DOM (or invokes jQuery) to add behavior  AngularJS puts all the DOM manipulation code into directives, thus easily separating that code out from the view and making it available as standalone reusable units  This helps the UI developer to concentrate fully on the user interface and the application developer to work separately on DOM manipulations and JQuery calls. whereas…
  • 10. Slide 10 www.edureka.co/angular-jsSlide 10Slide 10Slide 10 Static DOM Dynamic DOM (view) DOM Content Loaded Event ng-app=“application name” $injector $compile $rootscope $compile(dom, $rootscope) Browser AngularJS HTML AngularJS Way
  • 11. Slide 11 www.edureka.co/angular-jsSlide 11Slide 11Slide 11 Web App URI request is made Angular.js is Downloaded Bootstrap callback is registered by AngularJS HTML page is fully downloaded and callback is executed Angular traverses the DOM tree to find ng-app directive Angular locates the element containing ng-app directive and defines it as the root of app DOM Dependency Injection is created by an Injector Injector creates the root scope object ($rootScope) that will become the context for app’s model Angular compiles the DOM by starting at the ng- app root, then processes directives and bindings as it work its way down the tree Once bootstrapped, Angular waits for browser events that might change the model When an event occurs, Angular checks for a change to the model If changes to the model are found, Angular updates the affected bindings within the view AngularJS Way
  • 12. Slide 12 www.edureka.co/angular-jsSlide 12Slide 12Slide 12 Can you guess, Who invented AngularJS ?
  • 13. Slide 13 www.edureka.co/angular-jsSlide 13Slide 13Slide 13 AngularJS Inventors AngularJS was originally developed in 2009 by Misko Hevery and Adam Abrons at Brat Tech LLC, firstly named as GetAngular <html> enhanced for web applications
  • 14. Slide 14 www.edureka.co/angular-jsSlide 14Slide 14Slide 14 Big Brands Using AngularJS YouTube application for Sony's PlayStation 3 Go To : www.madewithangular.com
  • 15. Slide 15 www.edureka.co/angular-jsSlide 15Slide 15Slide 15 Hence The Growth In Job Trends
  • 19. Slide 19 www.edureka.co/angular-jsSlide 19Slide 19Slide 19 MVC & MVW Way of AngularJS Model View Directive Unit TestController Whatever HTML CSS MVC MVW Model View Controller HTML CSS JavaScript Services 2 way data binding 2 way data binding
  • 21. Slide 21 www.edureka.co/angular-jsSlide 21Slide 21Slide 21 Steps to create an AngularJS Application AngularJS: Your First Program 1. Include AngularJS
  • 22. Slide 22 www.edureka.co/angular-jsSlide 22Slide 22Slide 22 Steps to create an AngularJS Application AngularJS: Your First Program 2. Bootstrap the App
  • 23. Slide 23 www.edureka.co/angular-jsSlide 23Slide 23Slide 23 Steps to create an AngularJS Application AngularJS: Your First Program 3. Create the Controller
  • 24. Slide 24 www.edureka.co/angular-jsSlide 24Slide 24Slide 24 Steps to create an AngularJS Application AngularJS: Your First Program 4. Create the View
  • 25. Slide 25 www.edureka.co/angular-jsSlide 25Slide 25Slide 25 AngularJS Directives  The process of rendering of HTML inside the AngularJS application are controlled by Directives  Directives guide the HTML compiler to control the DOM elements by attaching specific behavior to the elements Directive Directive
  • 26. Slide 26 www.edureka.co/angular-jsSlide 26 Built in Directives Name Description ngJq Use this directive to force the angular.element library. This should be used to force either Jqlite by leaving ng-jq blank or setting the name of the jQuery variable under window (eg. jQuery) ngApp Use this directive to auto-bootstrap an AngularJS application. The ngApp directive designates the root elementof the application and is typically placed near the root element of the page - e.g. on the <body> or <html> tags a Modifies the default behavior of the html A tag so that the default action is prevented when the href attribute is empty ngDisabled This directive sets the disabled attribute on the element if the expression inside ngDisabled evaluates to truthy form Directive that instantiates FormController ngClass The ngClass directive allows you to dynamically set CSS classes on an HTML element by databinding an expression that represents all classes to be added ngController The ngController directive attaches a controller class to the view. This is a key aspect of how angular supports the principles behind the Model-View-Controller design pattern For rest of the directives refer https://docs.angularjs.org/api/ng/directive
  • 27. Slide 27 www.edureka.co/angular-jsSlide 27 AngularJS Filters  It formats the value of an expression for display to the user  Filters in view templates can be used with the following syntax » {{ expression | filter }}  Filters are generally injected when used with controllers, services and directives  With filters data can be organized to meet certain criteria UpperCase LowerCase Currency {{entity.name() | uppercase}} {{entity.amount() | currency}} {{entity.name() | lowercase}}
  • 28. Slide 28 www.edureka.co/angular-jsSlide 28 Filter Types  Generally used filter types Name Usage uppercase Change case of string to uppercase lowercase Change case of string to lowercase currency Formats string to currency format number Formats numerical value json Json representation date Formats date filter Filters array based on criteria orderBy Orders array based in criteria limitTo Limits number of objects
  • 29. Slide 29 www.edureka.co/angular-jsSlide 29Slide 29Slide 29 Single Page Application  Single-Page Applications (SPAs) are Web apps that load a single HTML page and dynamically update that page as the user interacts with the app  In a Single Page Application or SPA the page never reloads, though parts of the page may refresh. This reduces the round trips to the server to a minimum Client Side Routing Client Side Rendering
  • 30. How To Build Responsive SPA Using AngularJS ?
  • 31. Slide 31 www.edureka.co/angular-jsSlide 31Slide 31Slide 31 Building Highly Responsive Single Page Application  Usecase : Build a User Management Application  Prerequisite : » Text Editor (sublime or notepadd ++) » Latest browser (Firefox or Chrome) » Installed NodeJS (server) » Mongo (To store userinfo)  Project Specifications : » Login to the Application » Create a new user » View Users List » Update a existing user » Delete user » Signout
  • 32. Slide 32 www.edureka.co/angular-jsSlide 32Slide 32Slide 32 Certifications Get certified in AngularJS by Edureka Edureka's AngularJS course: • It covers the fundamental concepts like directives, routes, filters, services and factors which helps to build rich user interface web applications in AngularJS. • It helps you boost your web development skills and become a sought after SPA (single page application) developer. You will learn the highly efficient Angular features like data binding, scope management, form validation, routing, i18n & lot more. • Get to work on a To-Do List App Project towards the end of the course, which gives you complete insights on the Node.js framework. • Online Live Courses: 21 hours • Assignments: 20 hours • Project: 20 hours • Lifetime Access + 24 X 7 Support Go to www.edureka.co/angular-js
  • 33. Thank You Questions/Queries/Feedback Recording and presentation will be made available to you within 24 hours