SlideShare a Scribd company logo
AngularJs (1.x)
By Google
What is AngularJS?
• Client Side Browser App Framework
• Sponsored by Google
• Open Source
• Augment browser-based applications with model–view–
controller (MVC) capability
Basically AngularJS is MVW Framework.
What is MVW?
model–view–whatever
Other Javascript MV* Frameworks
 BackboneJS
 EmberJS
MVC : Model View Controller
View
ControllerModel
View :
• Renders the Model data
• Send User actions/events to
controller
• UI
Controller:
• Define Application
Behavior
• Maps user actions to
Model
• Select view for response
Model:
• Business Logic
• Notify view changes
• Application
Functionality
• Data in general
What is single page application?
• a web application that fits on a single web page
• providing a more fluid user experience similar to a desktop application
Condition:
• all necessary code is retrieved with a single page load
• the page does not reload at any point in the process
• does not control transfer to another page
Why we choose AngularJS?
• Bootstrapping
• Templates
• Module based
• Services
• Dependency Injection
• 2-way data binding
• Routing
• Directives
• Unit Test
Bootstrapping
7
Automatic Initialization Manual Initialization
Templates
Below attributes are used in a template:
• Directive — An attribute or element that augments an existing DOM
element or represents a reusable DOM
• Markup — The double curly brace notation {{ }} to bind expressions to
elements is built-in angular markup.
• Filter — Formats your data for display to the user.
• Form controls — Lets you validate user input.
Module
A module is a collection of services, directives, controllers, filters, and
configuration information. angular.module is used to configure the
$injector
Services
AngularJS supports the concepts of "Separation of Concerns" using
services architecture
There are two ways to create a service.
• factory
• service
Factory
Service
Some in-built services are in AngularJs like $location, $http and $routeProvider etc.
Dependency Injection
Example - I
Example - II
2-WAY DATA BINDING
Model View
Routing
The ngRoute module routes your application to different pages without reloading the entire
application.
Directives
Directives are markers (such as attributes, tags, and class names) that tell
AngularJS to attach a given behavior to a DOM element (or transform it,
replace it, etc.)
Some angular directives -:
ng-app - Bootstrapping your app and defining its scope.
ng-controller - defines which controller will be in charge of your view.
ng-init - directive initializes application data.
ng-model - directive binds the value of HTML controls to application data.
ng-bind - bind the innerHTML of the element to the specified model property
ng-show – It shows the content if already hidden.
ng-hide - It hides the content.
ng-view - ng-view is the directive that angular uses as a container to switch between
views.
ng-include - include HTML from an external file
ng-repeat - Allows for looping through collections
ng-click - Used to fire an click event.
Unit Testing
 Karma
 Jasmine
For testing AngularJS applications there are certain tools that you should
use that will make testing much easier to set up and run.
AngularJS Development IDE
• Visual Studio 2012/2013 Express or higher
• Eclipse
• WebStorm
• Sublime Text
• TextMate
Difference between AngularJs (1.x) and AngularJs 2
• First thing, Angular 2 is not the upgrade of angular 1. Angular 2 is
completely rewritten.
• AngularJS 1.x is easy to setup. All you need to do is to add reference of
the library and you are good to go.
• Angular 1.x has 2 ways to bootstrap angular. One using ng-app attribute
and other via code. In Angular 2, The only way to bootstrap angular is
via code.
• In Angular 1.x, we can define a service via 2 different ways.
1) Factory
2) Service
And in Angular 2, class is the only way to define a service.
Demo
THANK YOU !

More Related Content

PPTX
Angular js 1.3 presentation for fed nov 2014
Sarah Hudson
 
PDF
Introduction of angular js
Tamer Solieman
 
PPTX
Angular js presentation at Datacom
David Xi Peng Yang
 
PPTX
Introduction to AngularJS
David Parsons
 
PDF
Angular js
Knoldus Inc.
 
PDF
AngularJS
Hiten Pratap Singh
 
PPTX
Angular JS - Introduction
Sagar Acharya
 
PPTX
Introduction to Angularjs
Manish Shekhawat
 
Angular js 1.3 presentation for fed nov 2014
Sarah Hudson
 
Introduction of angular js
Tamer Solieman
 
Angular js presentation at Datacom
David Xi Peng Yang
 
Introduction to AngularJS
David Parsons
 
Angular js
Knoldus Inc.
 
Angular JS - Introduction
Sagar Acharya
 
Introduction to Angularjs
Manish Shekhawat
 

What's hot (20)

PPTX
Angular js PPT
Imtiyaz Ahmad Khan
 
PDF
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
PPTX
Front end development with Angular JS
Bipin
 
PDF
Angular JS tutorial
cncwebworld
 
PPTX
AngularJS intro
dizabl
 
PPTX
Angular js for beginners
Munir Hoque
 
PPTX
Angular js
Behind D Walls
 
PDF
AngularJS 101 - Everything you need to know to get started
Stéphane Bégaudeau
 
PPTX
AngularJS Beginners Workshop
Sathish VJ
 
PPTX
Getting Started with Angular JS
Akshay Mathur
 
PPTX
Step by Step - AngularJS
Infragistics
 
PPTX
Angular js
Dinusha Nandika
 
PPTX
Angularjs PPT
Amit Baghel
 
PPTX
Introduction to single page application with angular js
Mindfire Solutions
 
PDF
AngularJS: an introduction
Luigi De Russis
 
PPTX
Introduction to Angular JS
Santhosh Kumar Srinivasan
 
PPTX
AngularJS One Day Workshop
Shyam Seshadri
 
PPTX
AngularJS Best Practices
Narek Mamikonyan
 
PPTX
Why angular js Framework
Sakthi Bro
 
Angular js PPT
Imtiyaz Ahmad Khan
 
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
Front end development with Angular JS
Bipin
 
Angular JS tutorial
cncwebworld
 
AngularJS intro
dizabl
 
Angular js for beginners
Munir Hoque
 
Angular js
Behind D Walls
 
AngularJS 101 - Everything you need to know to get started
Stéphane Bégaudeau
 
AngularJS Beginners Workshop
Sathish VJ
 
Getting Started with Angular JS
Akshay Mathur
 
Step by Step - AngularJS
Infragistics
 
Angular js
Dinusha Nandika
 
Angularjs PPT
Amit Baghel
 
Introduction to single page application with angular js
Mindfire Solutions
 
AngularJS: an introduction
Luigi De Russis
 
Introduction to Angular JS
Santhosh Kumar Srinivasan
 
AngularJS One Day Workshop
Shyam Seshadri
 
AngularJS Best Practices
Narek Mamikonyan
 
Why angular js Framework
Sakthi Bro
 
Ad

Similar to AngularJs (1.x) Presentation (20)

PDF
AngularJS By Vipin
Vipin Mundayad
 
PDF
One Weekend With AngularJS
Yashobanta Bai
 
PDF
Responsive web design with Angularjs
Arnab Pradhan
 
PPTX
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
PPTX
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
PPTX
AngularJS = Browser applications on steroids
Maurice De Beijer [MVP]
 
PPTX
Anjular js
Naga Dinesh
 
PPTX
Understanding angular js
Aayush Shrestha
 
PPTX
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
PDF
AngularJS Workshop
Gianluca Cacace
 
DOCX
angularjs_tutorial.docx
telegramvip
 
PPT
Getting started with angular js
Maurice De Beijer [MVP]
 
PPTX
Intro to AngularJs
SolTech, Inc.
 
PPTX
AngularJS is awesome
Eusebiu Schipor
 
PPTX
Angular js for Beginnners
Santosh Kumar Kar
 
PPTX
Ajs ppt
Avyaya Tarnaka
 
PDF
Getting Started With AngularJS
Edureka!
 
PPTX
Angularjs
Sabin Tamrakar
 
AngularJS By Vipin
Vipin Mundayad
 
One Weekend With AngularJS
Yashobanta Bai
 
Responsive web design with Angularjs
Arnab Pradhan
 
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
AngularJS = Browser applications on steroids
Maurice De Beijer [MVP]
 
Anjular js
Naga Dinesh
 
Understanding angular js
Aayush Shrestha
 
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
AngularJS Workshop
Gianluca Cacace
 
angularjs_tutorial.docx
telegramvip
 
Getting started with angular js
Maurice De Beijer [MVP]
 
Intro to AngularJs
SolTech, Inc.
 
AngularJS is awesome
Eusebiu Schipor
 
Angular js for Beginnners
Santosh Kumar Kar
 
Getting Started With AngularJS
Edureka!
 
Angularjs
Sabin Tamrakar
 
Ad

Recently uploaded (20)

PDF
Become an Agentblazer Champion Challenge
Dele Amefo
 
PDF
Solar Panel Installation Guide – Step By Step Process 2025.pdf
CRMLeaf
 
PDF
Why Use Open Source Reporting Tools for Business Intelligence.pdf
Varsha Nayak
 
DOCX
The Future of Smart Factories Why Embedded Analytics Leads the Way
Varsha Nayak
 
PDF
Micromaid: A simple Mermaid-like chart generator for Pharo
ESUG
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
PPTX
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
PDF
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Hironori Washizaki
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PDF
Wondershare Filmora 14.5.20.12999 Crack Full New Version 2025
gsgssg2211
 
PDF
Teaching Reproducibility and Embracing Variability: From Floating-Point Exper...
University of Rennes, INSA Rennes, Inria/IRISA, CNRS
 
PDF
Build Multi-agent using Agent Development Kit
FadyIbrahim23
 
PDF
Microsoft Teams Essentials; The pricing and the versions_PDF.pdf
Q-Advise
 
PDF
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
PDF
Bandai Playdia The Book - David Glotz
BluePanther6
 
PDF
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
jamescantor38
 
PPTX
Why Use Open Source Reporting Tools for Business Intelligence.pptx
Varsha Nayak
 
PDF
Jenkins: An open-source automation server powering CI/CD Automation
SaikatBasu37
 
PPTX
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
PPTX
Presentation about variables and constant.pptx
kr2589474
 
Become an Agentblazer Champion Challenge
Dele Amefo
 
Solar Panel Installation Guide – Step By Step Process 2025.pdf
CRMLeaf
 
Why Use Open Source Reporting Tools for Business Intelligence.pdf
Varsha Nayak
 
The Future of Smart Factories Why Embedded Analytics Leads the Way
Varsha Nayak
 
Micromaid: A simple Mermaid-like chart generator for Pharo
ESUG
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
slidesgo-unlocking-the-code-the-dynamic-dance-of-variables-and-constants-2024...
kr2589474
 
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Hironori Washizaki
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
Wondershare Filmora 14.5.20.12999 Crack Full New Version 2025
gsgssg2211
 
Teaching Reproducibility and Embracing Variability: From Floating-Point Exper...
University of Rennes, INSA Rennes, Inria/IRISA, CNRS
 
Build Multi-agent using Agent Development Kit
FadyIbrahim23
 
Microsoft Teams Essentials; The pricing and the versions_PDF.pdf
Q-Advise
 
49785682629390197565_LRN3014_Migrating_the_Beast.pdf
Abilash868456
 
Bandai Playdia The Book - David Glotz
BluePanther6
 
Appium Automation Testing Tutorial PDF: Learn Mobile Testing in 7 Days
jamescantor38
 
Why Use Open Source Reporting Tools for Business Intelligence.pptx
Varsha Nayak
 
Jenkins: An open-source automation server powering CI/CD Automation
SaikatBasu37
 
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
Presentation about variables and constant.pptx
kr2589474
 

AngularJs (1.x) Presentation

  • 2. What is AngularJS? • Client Side Browser App Framework • Sponsored by Google • Open Source • Augment browser-based applications with model–view– controller (MVC) capability Basically AngularJS is MVW Framework. What is MVW? model–view–whatever
  • 3. Other Javascript MV* Frameworks  BackboneJS  EmberJS
  • 4. MVC : Model View Controller View ControllerModel View : • Renders the Model data • Send User actions/events to controller • UI Controller: • Define Application Behavior • Maps user actions to Model • Select view for response Model: • Business Logic • Notify view changes • Application Functionality • Data in general
  • 5. What is single page application? • a web application that fits on a single web page • providing a more fluid user experience similar to a desktop application Condition: • all necessary code is retrieved with a single page load • the page does not reload at any point in the process • does not control transfer to another page
  • 6. Why we choose AngularJS? • Bootstrapping • Templates • Module based • Services • Dependency Injection • 2-way data binding • Routing • Directives • Unit Test
  • 8. Templates Below attributes are used in a template: • Directive — An attribute or element that augments an existing DOM element or represents a reusable DOM • Markup — The double curly brace notation {{ }} to bind expressions to elements is built-in angular markup. • Filter — Formats your data for display to the user. • Form controls — Lets you validate user input.
  • 9. Module A module is a collection of services, directives, controllers, filters, and configuration information. angular.module is used to configure the $injector
  • 10. Services AngularJS supports the concepts of "Separation of Concerns" using services architecture There are two ways to create a service. • factory • service Factory Service Some in-built services are in AngularJs like $location, $http and $routeProvider etc.
  • 13. Routing The ngRoute module routes your application to different pages without reloading the entire application.
  • 14. Directives Directives are markers (such as attributes, tags, and class names) that tell AngularJS to attach a given behavior to a DOM element (or transform it, replace it, etc.) Some angular directives -: ng-app - Bootstrapping your app and defining its scope. ng-controller - defines which controller will be in charge of your view. ng-init - directive initializes application data. ng-model - directive binds the value of HTML controls to application data. ng-bind - bind the innerHTML of the element to the specified model property ng-show – It shows the content if already hidden. ng-hide - It hides the content. ng-view - ng-view is the directive that angular uses as a container to switch between views. ng-include - include HTML from an external file ng-repeat - Allows for looping through collections ng-click - Used to fire an click event.
  • 15. Unit Testing  Karma  Jasmine For testing AngularJS applications there are certain tools that you should use that will make testing much easier to set up and run.
  • 16. AngularJS Development IDE • Visual Studio 2012/2013 Express or higher • Eclipse • WebStorm • Sublime Text • TextMate
  • 17. Difference between AngularJs (1.x) and AngularJs 2 • First thing, Angular 2 is not the upgrade of angular 1. Angular 2 is completely rewritten. • AngularJS 1.x is easy to setup. All you need to do is to add reference of the library and you are good to go. • Angular 1.x has 2 ways to bootstrap angular. One using ng-app attribute and other via code. In Angular 2, The only way to bootstrap angular is via code. • In Angular 1.x, we can define a service via 2 different ways. 1) Factory 2) Service And in Angular 2, class is the only way to define a service.
  • 18. Demo