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

PPTX
Java Script An Introduction By HWA
PDF
Working Software 2019 - TypeScript come (forse) non lo hai mai visto
PPTX
Top 10 Mistakes AngularJS Developers Make
PPT
08. session 08 intoduction to javascript
PDF
KLab 2019 Meetup - TypeScript come (forse) non lo hai mai visto
PDF
AngularJS: Overview & Key Features
PDF
Introduction to AngularJS
PPT
Agile Development With Hobo
Java Script An Introduction By HWA
Working Software 2019 - TypeScript come (forse) non lo hai mai visto
Top 10 Mistakes AngularJS Developers Make
08. session 08 intoduction to javascript
KLab 2019 Meetup - TypeScript come (forse) non lo hai mai visto
AngularJS: Overview & Key Features
Introduction to AngularJS
Agile Development With Hobo

What's hot (20)

PPT
Javascript
PDF
Get rid of controllers in angular 1.5.x start using component directives
PPTX
Why angular js Framework
PDF
Advanced AngularJS Concepts
PPTX
Introduction to AngularJS
PPTX
Migrating an application from Angular 1 to Angular 2
PPT
Js ppt
PPTX
Setting up Page Object Model in Automation Framework
PPTX
Angular js PPT
PPTX
Angular JS - Introduction
PDF
Angular2 with TypeScript
PPTX
Java Script
PDF
Introduction of angular js
PPT
J Query
PDF
Building End-to-End Apps Using Typescript
PPTX
Angular js 1.3 presentation for fed nov 2014
PDF
Angularjs architecture
PPT
Java script
PPTX
Migrating an Application from Angular 1 to Angular 2
Javascript
Get rid of controllers in angular 1.5.x start using component directives
Why angular js Framework
Advanced AngularJS Concepts
Introduction to AngularJS
Migrating an application from Angular 1 to Angular 2
Js ppt
Setting up Page Object Model in Automation Framework
Angular js PPT
Angular JS - Introduction
Angular2 with TypeScript
Java Script
Introduction of angular js
J Query
Building End-to-End Apps Using Typescript
Angular js 1.3 presentation for fed nov 2014
Angularjs architecture
Java script
Migrating an Application from Angular 1 to Angular 2
Ad

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

PPTX
Intoduction to Angularjs
PDF
Angular Project Report
PDF
Angular js interview question answer for fresher
PPT
Introduction to AngularJS
PPT
introduction to Angularjs basics
PPTX
Angular Js Get Started - Complete Course
PPTX
Angular workshop - Full Development Guide
PPTX
AngularJS Fundamentals + WebAPI
PDF
Overview of the AngularJS framework
PDF
Introduction to Angularjs : kishan kumar
PPTX
Introduction to Angularjs
PPTX
AngularJS Introduction (Talk given on Aug 5 2013)
PPTX
Angular js
PPTX
Angular interview questions
PPTX
Angularjs Basics
PPTX
Angular Basics.pptx
PDF
PDF
Introduction to Angular Js
PDF
AngularJS in practice
ODP
Angular js-crash-course
Intoduction to Angularjs
Angular Project Report
Angular js interview question answer for fresher
Introduction to AngularJS
introduction to Angularjs basics
Angular Js Get Started - Complete Course
Angular workshop - Full Development Guide
AngularJS Fundamentals + WebAPI
Overview of the AngularJS framework
Introduction to Angularjs : kishan kumar
Introduction to Angularjs
AngularJS Introduction (Talk given on Aug 5 2013)
Angular js
Angular interview questions
Angularjs Basics
Angular Basics.pptx
Introduction to Angular Js
AngularJS in practice
Angular js-crash-course
Ad

Recently uploaded (20)

PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Empathic Computing: Creating Shared Understanding
PDF
cuic standard and advanced reporting.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PPTX
A Presentation on Artificial Intelligence
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
PDF
Machine learning based COVID-19 study performance prediction
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
Spectroscopy.pptx food analysis technology
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
Empathic Computing: Creating Shared Understanding
cuic standard and advanced reporting.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Building Integrated photovoltaic BIPV_UPV.pdf
Encapsulation_ Review paper, used for researhc scholars
A Presentation on Artificial Intelligence
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Machine learning based COVID-19 study performance prediction
NewMind AI Weekly Chronicles - August'25-Week II
Diabetes mellitus diagnosis method based random forest with bat algorithm
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
A comparative analysis of optical character recognition models for extracting...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Spectroscopy.pptx food analysis technology
Programs and apps: productivity, graphics, security and other tools
Unlocking AI with Model Context Protocol (MCP)
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Advanced methodologies resolving dimensionality complications for autism neur...
Network Security Unit 5.pdf for BCA BBA.

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