SlideShare a Scribd company logo
Sabin Tamrakar
sabintmkr09@outlook.com
WHAT IS ANGULARJS ?
• It is not JavaScript library.
• There are no functions we can call and use directly.
• It is not a DOM like jQuery. But uses subset of jQuery (jqLite).
• Focuses more on HTML side of webpages.
• For MVC/MVVM design pattern.
• Thus, AngularJS is a JavaScript MVC framework created by Google to build properly
architecture and maintainable web application.
HISTORY
• AngularJS version 1.0 was released in 2012.
• Miško Hevery, a Google employee, started to work with AngularJS in 2009.
• The idea turned out very well, and the project is now officially supported by Google.
• AngularJS is distributed as a JavaScript file, and can be added to a web page with a
script tag:
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
WHY ANGULARJS ?
• Defines ways to organize web application at client side.
• Extends HTML with new attributes, custom tags, expressions, templates with html.
• Good for Single Page Application (SPA) .
• Encourages MV/MVVM design patterns.
BEFORE ANGULARJS
KEY FEATURES
Features
DATA BINDING
MODEL AND VIEW
MODEL
• Plain old Java(Script) Objects (POJO) is used.
• No need to extend hierarchy.
VIEW
• Just plain HTML.
• Built in directives similar to JSTL.
CONTROLLER
• AngularJS controllers control the data of AngularJS applications.
• AngularJS controllers are regular JavaScript Objects.
• Controller can have methods too.
• The ng-controller directive defines the application controller.
• It’s a plain old javascript function
//declare Controller:
<div ng-app=“myApp” ng-controller=“myCtrl”>
• The ng-app directive tells AngularJS that the <div> element is the "owner" of an
AngularJS application.
• Use this directive to auto-bootstrap an application.
• Only one ng-app directive can be used per html document.
//Declare ng-app
<html ng-app>
ng-app
• AngularJS lets you extend HTML with new attributes called Directives.
• The directives can be placed in elements name, attributes, class names as well as
comments.
• Directives are ways to teach html new tricks.
• A directive is just a function that executes when compiler encounters it in the DOM
//Declare Directives:
<input ng-model=‘name’>
Directives
• The ng-app directive initializes an AngularJS application.
• The ng-init directive initializes application data.
• The ng-model directive binds the value of HTML controls (input, select, text-area) to
application data.
<div ng-app=“” ng-init=“firstName='John‘ “>
<p>Name: <input type="text" ng-model="firstName"></p>
<p>You wrote: {{ firstName }}</p>
</div>
Example
EXPRESSION
• AngularJS expressions are written inside double braces: {{ expression }}.
• AngularJS expressions binds data to HTML the same way as the ng-bind directive.
• AngularJS will "output" data exactly where the expression is written.
• AngularJS expressions are much like JavaScript expressions: They can contain
literals, operators, and variables.
• Example {{ 5 + 5 }} or {{ firstName + " " + lastName }}
FORMS
• An AngularJS form is a collection of input controls.
• It provides validation services, so that the users can be notified of invalid inputs.
• It provides instance feedback.
MODULE
• An AngularJS module defines an application.
• A module is a container for the different parts of an application.
• All application controllers should belong to a module.
• There can be multiple module.
//declare module:
var myAppModule=angular.module(‘myApp’,[--here goes dependent modules--]);
SCOPE
• An object that refers to application itself (model).
• An execution context for expressions like {{todo.name}}.
• Scope are arranged in hierarchical structure that mimics the DOM structure of the
application.
• Scope can watch expressions and propagate events.
//declare Scope:
$Scope
DEPENDENCY INJECTION
• Dependency Injection is a software design pattern that deals with how the
codes gets hold of its dependency.
• Testing is easy.
• Its SOLID (oop principle/design pattern)
FILTERS
• AngularJS filters format data for display for the users.
• Can create custom filters.
//Declare Filters:
{{expression [|filter_name[:parameter_value]..]}}
{{uppercase_expression | uppercase}}
{{expression |filter1|filter2}}
SERVICES
• Provides cleaner code.
• Organizable and reusability.
• Shared business logic.
• Data retrieval.
• One instance in app.
Angularjs

More Related Content

PPTX
AngularJS One Day Workshop
Shyam Seshadri
 
PPTX
Introduction to AngularJS
David Parsons
 
PDF
Gettings started with the superheroic JavaScript library AngularJS
Armin Vieweg
 
PPTX
AngularJS Best Practices
Narek Mamikonyan
 
PPTX
Angular js tutorial slides
samhelman
 
PDF
AngularJS
Hiten Pratap Singh
 
PPTX
AngularJs Basic Concept
Hari Haran
 
AngularJS One Day Workshop
Shyam Seshadri
 
Introduction to AngularJS
David Parsons
 
Gettings started with the superheroic JavaScript library AngularJS
Armin Vieweg
 
AngularJS Best Practices
Narek Mamikonyan
 
Angular js tutorial slides
samhelman
 
AngularJs Basic Concept
Hari Haran
 

What's hot (20)

PPT
Angular js
Hritesh Saha
 
PPTX
Introduction to Angular JS
Santhosh Kumar Srinivasan
 
PPT
Angular js
yogi_solanki
 
PDF
Overview of the AngularJS framework
Yakov Fain
 
PDF
AngularJS: Overview & Key Features
Mohamad Al Asmar
 
PDF
AngularJS - What is it & Why is it awesome ? (with demos)
Gary Arora
 
PDF
Introduction of angular js
Tamer Solieman
 
PPTX
AngularJS
Mahmoud Tolba
 
PPTX
Angular js
Larry Ball
 
PDF
AngularJS best-practices
Henry Tao
 
PDF
AngularJS 101 - Everything you need to know to get started
Stéphane Bégaudeau
 
PPTX
The Basics Angular JS
OrisysIndia
 
PPTX
Why angular js Framework
Sakthi Bro
 
PPTX
Introduction to Angular js 2.0
Nagaraju Sangam
 
PPTX
Angularjs basic part01
Mohd Abdul Baquee
 
PPTX
AngularJs presentation
Phan Tuan
 
PDF
AngularJS introduction
Tania Gonzales
 
PPTX
Angular js
Mindtree
 
PPTX
Angular 4
Saurabh Juneja
 
ODP
Angularjs
Vincenzo Ferrari
 
Angular js
Hritesh Saha
 
Introduction to Angular JS
Santhosh Kumar Srinivasan
 
Angular js
yogi_solanki
 
Overview of the AngularJS framework
Yakov Fain
 
AngularJS: Overview & Key Features
Mohamad Al Asmar
 
AngularJS - What is it & Why is it awesome ? (with demos)
Gary Arora
 
Introduction of angular js
Tamer Solieman
 
AngularJS
Mahmoud Tolba
 
Angular js
Larry Ball
 
AngularJS best-practices
Henry Tao
 
AngularJS 101 - Everything you need to know to get started
Stéphane Bégaudeau
 
The Basics Angular JS
OrisysIndia
 
Why angular js Framework
Sakthi Bro
 
Introduction to Angular js 2.0
Nagaraju Sangam
 
Angularjs basic part01
Mohd Abdul Baquee
 
AngularJs presentation
Phan Tuan
 
AngularJS introduction
Tania Gonzales
 
Angular js
Mindtree
 
Angular 4
Saurabh Juneja
 
Angularjs
Vincenzo Ferrari
 
Ad

Viewers also liked (12)

DOCX
Trabajo nº 9
Stfanii Gavilanz
 
DOCX
Lectura 3
Stfanii Gavilanz
 
PDF
Acta de finiquito
Stfanii Gavilanz
 
DOCX
Trabajo nº 8
Stfanii Gavilanz
 
DOCX
Base de datos
Stfanii Gavilanz
 
PDF
An Introduction to Precision Growth Strategies
Howard P. Berkowitz
 
PDF
VINDUSPUSS
ken1head76
 
PPTX
Management Information System
Sabin Tamrakar
 
DOCX
Access
Stfanii Gavilanz
 
PDF
Obligaciones del empleador con el trabajador
Stfanii Gavilanz
 
Trabajo nº 9
Stfanii Gavilanz
 
Lectura 3
Stfanii Gavilanz
 
Acta de finiquito
Stfanii Gavilanz
 
Trabajo nº 8
Stfanii Gavilanz
 
Base de datos
Stfanii Gavilanz
 
An Introduction to Precision Growth Strategies
Howard P. Berkowitz
 
VINDUSPUSS
ken1head76
 
Management Information System
Sabin Tamrakar
 
Obligaciones del empleador con el trabajador
Stfanii Gavilanz
 
Ad

Similar to Angularjs (20)

PPTX
Intoduction to Angularjs
Gaurav Agrawal
 
PPTX
AgularJS basics- angular directives and controllers
jobinThomas54
 
PPT
Angularjs for kolkata drupal meetup
Goutam Dey
 
PPTX
AngularJs (1.x) Presentation
Raghubir Singh
 
PPTX
Angular JS Indtrodution
adesh21
 
PPTX
Anjular js
Naga Dinesh
 
PPTX
AngularJS is awesome
Eusebiu Schipor
 
PDF
Introduction to Angular Js
Professional Guru
 
PPTX
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
PPTX
Introduction to Angularjs
Manish Shekhawat
 
PDF
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
PPTX
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
PPTX
AngularJS Beginners Workshop
Sathish VJ
 
PPTX
Angular js for Beginnners
Santosh Kumar Kar
 
PPTX
Valentine with Angular js - Introduction
Senthil Kumar
 
PPTX
Angular JS, A dive to concepts
Abhishek Sur
 
PPTX
Angular JS - Introduction
Sagar Acharya
 
PPTX
AngularJS Introduction, how to run Angular
SamuelJohnpeter
 
PDF
Introduction to Angular Js
Professional Guru
 
PDF
Wt unit 5 client &amp; server side framework
PUNE VIDYARTHI GRIHA'S COLLEGE OF ENGINEERING, NASHIK
 
Intoduction to Angularjs
Gaurav Agrawal
 
AgularJS basics- angular directives and controllers
jobinThomas54
 
Angularjs for kolkata drupal meetup
Goutam Dey
 
AngularJs (1.x) Presentation
Raghubir Singh
 
Angular JS Indtrodution
adesh21
 
Anjular js
Naga Dinesh
 
AngularJS is awesome
Eusebiu Schipor
 
Introduction to Angular Js
Professional Guru
 
Learning AngularJS - Complete coverage of AngularJS features and concepts
Suresh Patidar
 
Introduction to Angularjs
Manish Shekhawat
 
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
Kalp Corporate Angular Js Tutorials
Kalp Corporate
 
AngularJS Beginners Workshop
Sathish VJ
 
Angular js for Beginnners
Santosh Kumar Kar
 
Valentine with Angular js - Introduction
Senthil Kumar
 
Angular JS, A dive to concepts
Abhishek Sur
 
Angular JS - Introduction
Sagar Acharya
 
AngularJS Introduction, how to run Angular
SamuelJohnpeter
 
Introduction to Angular Js
Professional Guru
 
Wt unit 5 client &amp; server side framework
PUNE VIDYARTHI GRIHA'S COLLEGE OF ENGINEERING, NASHIK
 

Recently uploaded (20)

PPTX
EU POPs Limits & Digital Product Passports Compliance Strategy 2025.pptx
Certivo Inc
 
PPTX
Materi_Pemrograman_Komputer-Looping.pptx
RanuFajar1
 
DOCX
The Five Best AI Cover Tools in 2025.docx
aivoicelabofficial
 
PPTX
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
DOCX
The Future of Smart Factories Why Embedded Analytics Leads the Way
Varsha Nayak
 
PDF
Exploring AI Agents in Process Industries
amoreira6
 
PPTX
AZ900_SLA_Pricing_2025_LondonIT (1).pptx
chumairabdullahph
 
PDF
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pdf
Certivo Inc
 
PPTX
Presentation of Computer CLASS 2 .pptx
darshilchaudhary558
 
PDF
The Role of Automation and AI in EHS Management for Data Centers.pdf
TECH EHS Solution
 
PDF
Bandai Playdia The Book - David Glotz
BluePanther6
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PDF
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Hironori Washizaki
 
PPTX
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
PDF
Become an Agentblazer Champion Challenge
Dele Amefo
 
PDF
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
PPTX
AIRLINE PRICE API | FLIGHT API COST |
philipnathen82
 
PDF
Wondershare Filmora 14.5.20.12999 Crack Full New Version 2025
gsgssg2211
 
PDF
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
PPTX
Why Use Open Source Reporting Tools for Business Intelligence.pptx
Varsha Nayak
 
EU POPs Limits & Digital Product Passports Compliance Strategy 2025.pptx
Certivo Inc
 
Materi_Pemrograman_Komputer-Looping.pptx
RanuFajar1
 
The Five Best AI Cover Tools in 2025.docx
aivoicelabofficial
 
ConcordeApp: Engineering Global Impact & Unlocking Billions in Event ROI with AI
chastechaste14
 
The Future of Smart Factories Why Embedded Analytics Leads the Way
Varsha Nayak
 
Exploring AI Agents in Process Industries
amoreira6
 
AZ900_SLA_Pricing_2025_LondonIT (1).pptx
chumairabdullahph
 
PFAS Reporting Requirements 2026 Are You Submission Ready Certivo.pdf
Certivo Inc
 
Presentation of Computer CLASS 2 .pptx
darshilchaudhary558
 
The Role of Automation and AI in EHS Management for Data Centers.pdf
TECH EHS Solution
 
Bandai Playdia The Book - David Glotz
BluePanther6
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
IEEE-CS Tech Predictions, SWEBOK and Quantum Software: Towards Q-SWEBOK
Hironori Washizaki
 
Maximizing Revenue with Marketo Measure: A Deep Dive into Multi-Touch Attribu...
bbedford2
 
Become an Agentblazer Champion Challenge
Dele Amefo
 
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
AIRLINE PRICE API | FLIGHT API COST |
philipnathen82
 
Wondershare Filmora 14.5.20.12999 Crack Full New Version 2025
gsgssg2211
 
ShowUs: Pharo Stream Deck (ESUG 2025, Gdansk)
ESUG
 
Why Use Open Source Reporting Tools for Business Intelligence.pptx
Varsha Nayak
 

Angularjs

  • 2. WHAT IS ANGULARJS ? • It is not JavaScript library. • There are no functions we can call and use directly. • It is not a DOM like jQuery. But uses subset of jQuery (jqLite). • Focuses more on HTML side of webpages. • For MVC/MVVM design pattern. • Thus, AngularJS is a JavaScript MVC framework created by Google to build properly architecture and maintainable web application.
  • 3. HISTORY • AngularJS version 1.0 was released in 2012. • Miško Hevery, a Google employee, started to work with AngularJS in 2009. • The idea turned out very well, and the project is now officially supported by Google. • AngularJS is distributed as a JavaScript file, and can be added to a web page with a script tag: <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
  • 4. WHY ANGULARJS ? • Defines ways to organize web application at client side. • Extends HTML with new attributes, custom tags, expressions, templates with html. • Good for Single Page Application (SPA) . • Encourages MV/MVVM design patterns.
  • 9. MODEL AND VIEW MODEL • Plain old Java(Script) Objects (POJO) is used. • No need to extend hierarchy. VIEW • Just plain HTML. • Built in directives similar to JSTL.
  • 10. CONTROLLER • AngularJS controllers control the data of AngularJS applications. • AngularJS controllers are regular JavaScript Objects. • Controller can have methods too. • The ng-controller directive defines the application controller. • It’s a plain old javascript function //declare Controller: <div ng-app=“myApp” ng-controller=“myCtrl”>
  • 11. • The ng-app directive tells AngularJS that the <div> element is the "owner" of an AngularJS application. • Use this directive to auto-bootstrap an application. • Only one ng-app directive can be used per html document. //Declare ng-app <html ng-app> ng-app
  • 12. • AngularJS lets you extend HTML with new attributes called Directives. • The directives can be placed in elements name, attributes, class names as well as comments. • Directives are ways to teach html new tricks. • A directive is just a function that executes when compiler encounters it in the DOM //Declare Directives: <input ng-model=‘name’> Directives
  • 13. • The ng-app directive initializes an AngularJS application. • The ng-init directive initializes application data. • The ng-model directive binds the value of HTML controls (input, select, text-area) to application data. <div ng-app=“” ng-init=“firstName='John‘ “> <p>Name: <input type="text" ng-model="firstName"></p> <p>You wrote: {{ firstName }}</p> </div> Example
  • 14. EXPRESSION • AngularJS expressions are written inside double braces: {{ expression }}. • AngularJS expressions binds data to HTML the same way as the ng-bind directive. • AngularJS will "output" data exactly where the expression is written. • AngularJS expressions are much like JavaScript expressions: They can contain literals, operators, and variables. • Example {{ 5 + 5 }} or {{ firstName + " " + lastName }}
  • 15. FORMS • An AngularJS form is a collection of input controls. • It provides validation services, so that the users can be notified of invalid inputs. • It provides instance feedback.
  • 16. MODULE • An AngularJS module defines an application. • A module is a container for the different parts of an application. • All application controllers should belong to a module. • There can be multiple module. //declare module: var myAppModule=angular.module(‘myApp’,[--here goes dependent modules--]);
  • 17. SCOPE • An object that refers to application itself (model). • An execution context for expressions like {{todo.name}}. • Scope are arranged in hierarchical structure that mimics the DOM structure of the application. • Scope can watch expressions and propagate events. //declare Scope: $Scope
  • 18. DEPENDENCY INJECTION • Dependency Injection is a software design pattern that deals with how the codes gets hold of its dependency. • Testing is easy. • Its SOLID (oop principle/design pattern)
  • 19. FILTERS • AngularJS filters format data for display for the users. • Can create custom filters. //Declare Filters: {{expression [|filter_name[:parameter_value]..]}} {{uppercase_expression | uppercase}} {{expression |filter1|filter2}}
  • 20. SERVICES • Provides cleaner code. • Organizable and reusability. • Shared business logic. • Data retrieval. • One instance in app.