SlideShare a Scribd company logo
Everything You Need To Know About
By Sina Mirhejazi
WHAT IS ?
➤ It’s not a JavaScript Library. There is no
function which we can directly call and use.
➤ It’s not a DOM manipulation library like
jQuery. But it uses subset of jQuery to
manipulation (Called jqLite).
➤ Focus more on HTML side of web apps.
➤ For MVC/MVVM design patterns.
PHILOSOPHY
➤ Angular is what HTML could have been if it
had been designed for applications.
➤ HTML is a great declarative language for static
documents. It does not contain much in the way
of creating application.
➤ Building web-applications is an exercise in
what do I have to do, so that I trick the browser
in to do what I want.
➤ Thats why we have frameworks - set of utility
functions and libraries for DOM manipulation.
➤ Angular takes another approach.
➤ Angular teaches the browser new syntax.
➤ One way data binding means creating View once and leave Model
behind. Whenever we want to change something, we have to
change Model and render View again.
➤ Two way data binding link View and Model together and every
changes to each one affect another continuously.
➤ How?
WHERE THINGS START?
➤ It all starts when you add angular script to your code. THAT SIMPLE!
ANGULAR MODULES
➤ Angular works with modules.
➤ Module for main App.
➤ Module for components.
➤ Muddle for everything.
ANGULAR CONTROLLERS
➤ We use a Controller to provide data for our Views.
➤ We should not use Controllers to manipulate DOM.
DEPENDENCY INJECTION
➤ DI is a way to tell angular which service needs what.
➤ There are several ways to do this.
SCOPE
➤ Scope is a link between controller and view.
➤ We can add properties to our $scope object in controllers and get them on view.
➤ More on Scopes later.
ANGULAR DIRECTIVES
➤ Directives are out only chance to manipulate DOM.
➤ Directives can teach HTML new stuff.
➤ They can be attributes, classes(!), comments(!) and even tag elements!!!
➤ We seen a couple of them earlier like:
➤ ng-app
➤ ng-controller
➤ ng-repeat
➤ ng-show
ANGULAR DIRECTIVES
➤ ng-app
➤ ng-app specify out main module to run the application.
➤ IT goes on <html> tag.
➤ ng-controller
➤ ng-controller link a controller to part of our DOM.
➤ $scope of controller affect the part of DOM that ng-controller linked to. And It’s
child of course.
ANGULAR DIRECTIVES
➤ ng-repeat
➤ ng-repeat iterate between items of a given object/array. Just like for…in.
➤ ng-show/ng-hide
➤ These twins get an expression and show/hide whether it’s true or false.
➤ ng-if
➤ This one gets an expression and comment/uncomment the element that contains
it.
ANGULAR DIRECTIVES
➤ ng-click
➤ ng-click get an expression(usually a function) and fire that expression in case of
click.
➤ ng-bind
➤ This one is all awesomeness of AngularJS
➤ ng-bind replace text content of it’s tag with a given expression.
➤ AND change it whenever expression change!
➤ It has a little brother named {{expression}}
ANGULAR EXPRESSIONS
➤ What is this expression we keep talking about?
➤ Expression is a snippet of JavaScript code, inside HTML tags and attributes.
➤ They live inside HTML tags under the shield of {{}} and in attributes.
ANGULAR FILTERS
➤ A filter formats the value of an expression for display to the user.
➤ There are 5 built-in filters and we can write our own filters.
➤ Built-in filters are:
➤ uppercase: Format a string to upper case.
➤ lowercase: Format a string to lower case.
➤ currency: Format a number to a currency format.
➤ orderBy: Orders an array by an expression.
➤ filter: Select a subset of items from an array.
SERVICES, FACTORIES AND PROVIDERS
➤ Services, Factories and Providers are for providing data to our application.
➤ They are singletons(unlike controllers that instantiate every time we call them).
Which means there is only one instance of specific Factory in whole application. So
we can share data between controllers.
➤ There is a slight difference between them. Providers and be configured before
application start(some kind of constructor for whole app called config phase).
➤ There are two other type of recipe to define data in AngularJS named ”Value” and
”Constant”. Just to mention.
FACTORY
ROUTING AND TEMPLATES
➤ AngularJS can handle routes by using ngRoute module.
➤ We just need to add angular-route script and add ngRoute as a dependency to our
app module.
➤ Also some configuration need to be done.
JUST A LITTLE BIT MORE ABOUT SCOPES
$BROADCAST, $EMIT, $ON
➤ AngularJS has a great way to communicate between different scopes.
➤ A scope can talk to its child through $broadcast.
➤ It can talk to its parents through $emit.
➤ And everyone can listen to their family using $on.
ANGULAR RESOURCE
➤ AngularJS needs ngResource module to communicate with server.
➤ Dont forget to add ngResource to app dependencies
AngularJS has some great friends to help him grow.
RESOURCES
➤ AngularJS Documentation: http://docs.angularjs.org
➤ Some Good Slides:
➤ Everything you need to know to get started http://goo.gl/sqHKdU
➤ AngularJS Basics with Example http://goo.gl/Bh6D9K
➤ Introduction to AngularJS http://goo.gl/524fTR
➤ Angular Style Guide, John Papa https://goo.gl/ft7Vec
➤ Don’t forget to check Youtube for so many good workshop and tutorials

More Related Content

What's hot (20)

PPT
Javascript
Iblesoft
 
PDF
Get rid of controllers in angular 1.5.x start using component directives
Marios Fakiolas
 
PPTX
Why angular js Framework
Sakthi Bro
 
PDF
Advanced AngularJS Concepts
Kyle Hodgson
 
PPTX
Introduction to AngularJS
David Parsons
 
PPTX
Migrating an application from Angular 1 to Angular 2
Ross Dederer
 
PPT
Js ppt
Rakhi Thota
 
PPTX
Setting up Page Object Model in Automation Framework
valuebound
 
PPTX
Angular js PPT
Imtiyaz Ahmad Khan
 
PPTX
Angular JS - Introduction
Sagar Acharya
 
PDF
Angular2 with TypeScript
Rohit Bishnoi
 
PPTX
Java Script
husbancom
 
PDF
Introduction of angular js
Tamer Solieman
 
PPT
J Query
ravinxg
 
PDF
Building End-to-End Apps Using Typescript
Gil Fink
 
PPTX
Angular js 1.3 presentation for fed nov 2014
Sarah Hudson
 
PDF
Angularjs architecture
Michael He
 
PPT
Java script
ITz_1
 
PPTX
Migrating an Application from Angular 1 to Angular 2
Ross Dederer
 
Javascript
Iblesoft
 
Get rid of controllers in angular 1.5.x start using component directives
Marios Fakiolas
 
Why angular js Framework
Sakthi Bro
 
Advanced AngularJS Concepts
Kyle Hodgson
 
Introduction to AngularJS
David Parsons
 
Migrating an application from Angular 1 to Angular 2
Ross Dederer
 
Js ppt
Rakhi Thota
 
Setting up Page Object Model in Automation Framework
valuebound
 
Angular js PPT
Imtiyaz Ahmad Khan
 
Angular JS - Introduction
Sagar Acharya
 
Angular2 with TypeScript
Rohit Bishnoi
 
Java Script
husbancom
 
Introduction of angular js
Tamer Solieman
 
J Query
ravinxg
 
Building End-to-End Apps Using Typescript
Gil Fink
 
Angular js 1.3 presentation for fed nov 2014
Sarah Hudson
 
Angularjs architecture
Michael He
 
Java script
ITz_1
 
Migrating an Application from Angular 1 to Angular 2
Ross Dederer
 

Similar to Everything You Need To Know About AngularJS (20)

PPTX
ME vs WEB - AngularJS Fundamentals
Aviran Cohen
 
PPTX
Angular workshop - Full Development Guide
Nitin Giri
 
PDF
AngularJS Workshop
Gianluca Cacace
 
PPTX
Intro to AngularJs
SolTech, Inc.
 
PPTX
Angular Presentation
Adam Moore
 
PPT
Introduction to AngularJS
Anass90
 
PPT
Angular js
yogi_solanki
 
PDF
AngularJS
Hiten Pratap Singh
 
PPTX
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
PPT
Angular js
Hritesh Saha
 
PPTX
The AngularJS way
Boyan Mihaylov
 
PPTX
AngularJS = Browser applications on steroids
Maurice De Beijer [MVP]
 
PPTX
Introduction to AngularJs
murtazahaveliwala
 
PDF
AngularJS Basics
Ravi Mone
 
PPTX
Introduction to Angularjs
Manish Shekhawat
 
PDF
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
PPTX
Single Page Applications Workshop Part II: Single Page Applications using Ang...
Jalal Mostafa
 
ME vs WEB - AngularJS Fundamentals
Aviran Cohen
 
Angular workshop - Full Development Guide
Nitin Giri
 
AngularJS Workshop
Gianluca Cacace
 
Intro to AngularJs
SolTech, Inc.
 
Angular Presentation
Adam Moore
 
Introduction to AngularJS
Anass90
 
Angular js
yogi_solanki
 
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
Angular js
Hritesh Saha
 
The AngularJS way
Boyan Mihaylov
 
AngularJS = Browser applications on steroids
Maurice De Beijer [MVP]
 
Introduction to AngularJs
murtazahaveliwala
 
AngularJS Basics
Ravi Mone
 
Introduction to Angularjs
Manish Shekhawat
 
Introduction to Angularjs : kishan kumar
Appfinz Technologies
 
Single Page Applications Workshop Part II: Single Page Applications using Ang...
Jalal Mostafa
 
Ad

Recently uploaded (20)

PPTX
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PPTX
Digital Circuits, important subject in CS
contactparinay1
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
AI Penetration Testing Essentials: A Cybersecurity Guide for 2025
defencerabbit Team
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Digital Circuits, important subject in CS
contactparinay1
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
“Squinting Vision Pipelines: Detecting and Correcting Errors in Vision Models...
Edge AI and Vision Alliance
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Future Tech Innovations 2025 – A TechLists Insight
TechLists
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
Ad

Everything You Need To Know About AngularJS

  • 1. Everything You Need To Know About By Sina Mirhejazi
  • 2. WHAT IS ? ➤ It’s not a JavaScript Library. There is no function which we can directly call and use. ➤ It’s not a DOM manipulation library like jQuery. But it uses subset of jQuery to manipulation (Called jqLite). ➤ Focus more on HTML side of web apps. ➤ For MVC/MVVM design patterns.
  • 3. PHILOSOPHY ➤ Angular is what HTML could have been if it had been designed for applications. ➤ HTML is a great declarative language for static documents. It does not contain much in the way of creating application. ➤ Building web-applications is an exercise in what do I have to do, so that I trick the browser in to do what I want. ➤ Thats why we have frameworks - set of utility functions and libraries for DOM manipulation. ➤ Angular takes another approach. ➤ Angular teaches the browser new syntax.
  • 4. ➤ One way data binding means creating View once and leave Model behind. Whenever we want to change something, we have to change Model and render View again. ➤ Two way data binding link View and Model together and every changes to each one affect another continuously. ➤ How?
  • 5. WHERE THINGS START? ➤ It all starts when you add angular script to your code. THAT SIMPLE!
  • 6. ANGULAR MODULES ➤ Angular works with modules. ➤ Module for main App. ➤ Module for components. ➤ Muddle for everything.
  • 7. ANGULAR CONTROLLERS ➤ We use a Controller to provide data for our Views. ➤ We should not use Controllers to manipulate DOM.
  • 8. DEPENDENCY INJECTION ➤ DI is a way to tell angular which service needs what. ➤ There are several ways to do this.
  • 9. SCOPE ➤ Scope is a link between controller and view. ➤ We can add properties to our $scope object in controllers and get them on view. ➤ More on Scopes later.
  • 10. ANGULAR DIRECTIVES ➤ Directives are out only chance to manipulate DOM. ➤ Directives can teach HTML new stuff. ➤ They can be attributes, classes(!), comments(!) and even tag elements!!! ➤ We seen a couple of them earlier like: ➤ ng-app ➤ ng-controller ➤ ng-repeat ➤ ng-show
  • 11. ANGULAR DIRECTIVES ➤ ng-app ➤ ng-app specify out main module to run the application. ➤ IT goes on <html> tag. ➤ ng-controller ➤ ng-controller link a controller to part of our DOM. ➤ $scope of controller affect the part of DOM that ng-controller linked to. And It’s child of course.
  • 12. ANGULAR DIRECTIVES ➤ ng-repeat ➤ ng-repeat iterate between items of a given object/array. Just like for…in. ➤ ng-show/ng-hide ➤ These twins get an expression and show/hide whether it’s true or false. ➤ ng-if ➤ This one gets an expression and comment/uncomment the element that contains it.
  • 13. ANGULAR DIRECTIVES ➤ ng-click ➤ ng-click get an expression(usually a function) and fire that expression in case of click. ➤ ng-bind ➤ This one is all awesomeness of AngularJS ➤ ng-bind replace text content of it’s tag with a given expression. ➤ AND change it whenever expression change! ➤ It has a little brother named {{expression}}
  • 14. ANGULAR EXPRESSIONS ➤ What is this expression we keep talking about? ➤ Expression is a snippet of JavaScript code, inside HTML tags and attributes. ➤ They live inside HTML tags under the shield of {{}} and in attributes.
  • 15. ANGULAR FILTERS ➤ A filter formats the value of an expression for display to the user. ➤ There are 5 built-in filters and we can write our own filters. ➤ Built-in filters are: ➤ uppercase: Format a string to upper case. ➤ lowercase: Format a string to lower case. ➤ currency: Format a number to a currency format. ➤ orderBy: Orders an array by an expression. ➤ filter: Select a subset of items from an array.
  • 16. SERVICES, FACTORIES AND PROVIDERS ➤ Services, Factories and Providers are for providing data to our application. ➤ They are singletons(unlike controllers that instantiate every time we call them). Which means there is only one instance of specific Factory in whole application. So we can share data between controllers. ➤ There is a slight difference between them. Providers and be configured before application start(some kind of constructor for whole app called config phase). ➤ There are two other type of recipe to define data in AngularJS named ”Value” and ”Constant”. Just to mention.
  • 18. ROUTING AND TEMPLATES ➤ AngularJS can handle routes by using ngRoute module. ➤ We just need to add angular-route script and add ngRoute as a dependency to our app module. ➤ Also some configuration need to be done.
  • 19. JUST A LITTLE BIT MORE ABOUT SCOPES
  • 20. $BROADCAST, $EMIT, $ON ➤ AngularJS has a great way to communicate between different scopes. ➤ A scope can talk to its child through $broadcast. ➤ It can talk to its parents through $emit. ➤ And everyone can listen to their family using $on.
  • 21. ANGULAR RESOURCE ➤ AngularJS needs ngResource module to communicate with server. ➤ Dont forget to add ngResource to app dependencies
  • 22. AngularJS has some great friends to help him grow.
  • 23. RESOURCES ➤ AngularJS Documentation: http://docs.angularjs.org ➤ Some Good Slides: ➤ Everything you need to know to get started http://goo.gl/sqHKdU ➤ AngularJS Basics with Example http://goo.gl/Bh6D9K ➤ Introduction to AngularJS http://goo.gl/524fTR ➤ Angular Style Guide, John Papa https://goo.gl/ft7Vec ➤ Don’t forget to check Youtube for so many good workshop and tutorials