SlideShare a Scribd company logo
Present by : Ronak Patel
Introduction
 AngularJS is a complete JavaScript-based open-
source front-end web application framework mainly
maintained by Google.
 Html , CSS , Java-script basic knowledge is require for
learning Angular.
 Its aims to simplify both development and testing.
 Its provide the frame-work for MVC & MVVM architecture
along with component use in the rich internet application
Agenda
 What is AngularJS ?
 Why AngularJS ?
 Features of AngularJS
 Core Features
 MVC Architecture
 AngularJS Module
 AngularJS Directives
 Data-binding
 Scope , Controller , Services , Filter
 Dependency Injection
 Services & Custom Factory
 Routing
What is Angular ?
 Angular is a extension of Html ,CSS ,JavaScript
library framework .
 AngularJS is a powerful framework for create RICH
Internet Application(RIA).
 AngularJS is distributed as a JavaScript file, and can
be added to a web page with a script tag:
<script></script>
 It Is use for develop single side web-applications.
Why AngularJS ?
 Single page application
 Re-usability
 Dependency Injection
 Write less code
 Security
 Easy Integration
 Data binding (example : Two way Binding )
 Easy Testing
Features Of Angular
 AngularJS provides developers options to write client
side application (using JavaScript) in a clean MVC(Model
View Controller) way.
 Organize web application at client side.
 Faster , Secure
 Re-usability
 Good for Single-Page Application
Core Features
 Model View Controller
 Data-binding
 Scope
 Controller
 Services
 Filters
 Directives
 Templates
 Routing
 Dependency Injection
MVC Architecture
(Model) (Database)
Contains the data which is to be displayed in the
view.
(View) (HTML)
Contains html tags to display the model data.
(Controller) (JavaScript function)
logic for loading data into model & calling the view
AngularJS Modules
 An AngularJS module defines an application.
 Its contains the different parts of application.
 Its container for application controller
 Controller always belong to a module
 It is created by angular.module function
 <div ng-app="myApp">...</div>
<script>
var app = angular.module("myApp", []);
</script>
AngularJS Directives
 Html elements tag is attribute its show the information
about the particular item. (such details noting but
attribute)
 Attributes which are provided by the AngularJS are called
as angular directives.
 In angular there are two types of directives
 Custom directives & Built-in directives
 Ng-app : initializes an AngularJS application.
 Ng-init : initializes application data.
 Ng-model : binds the value of HTML controls (input,
select, text area) to application data.
 Example : init.html
 Predefine directives (Its define with ng [its mean
angular])
 ng-dbl-click
 ng-mouseover
 ng-mouseout
 ng-keypress
 ng-keyup
 ng-change
 ng-disabled
 ng-show
 ng-hide
 ng-class
 ng-style
Data-Binding
 It is the automatic synchronization of data between
model and view components.
 Example : ng-bind , ng-model ,{{ }}
Scope
 These are objects that refer to the model. They act
as a glue between controller and view.
 The scope is the binding part between the HTML
(view) and the JavaScript (controller).
 The scope is available for both the view and the
controller.
 Example : Scope.html , two-way binding.html
Angular js
AngularJS Controllers
 Controllers are JavaScript functions that are bound
to a particular scope.
 They are regular JavaScript Objects.
 They control the data of AngularJS applications.
 ng-controller
 Example : two-way binding.html , Scope.html
AngularJS Services
 AngularJS has about 30 built-in services.
 One of them is the $location service.
 The $location service has methods which return
information about the location of the current web
page:
 Example : location.html , timeout.html
AngularJS Filters
 Currency : Format a number to a currency format.
 Date : Format a date to a specified format.
 JSON : Format an object to a JSON string.
 Lowercase: Format a string to lower case.
 Uppercase : Format a string to upper case.
 Number: Format a number to a string.
 Order By : Orders an array by an expression.
Dependency Injection
 Dependency Injection is a software design pattern in which
components are given their dependencies instead of hard coding
them within the component.
 In the angular the term dependency use in
 function fun1()
 { }
 function fun2()
 { }
 Class dependency: one class object use in another class. that time
create the problem.
 Which lets you to create a dependent component without having the
base component.
 Example : scope.html
Custom services & Custom Factories
 Service : Angular services are java script functions and
are responsible to do a specific tasks.
 Angular provide the in-built services like
 $http , $route , $window, $location
 Five way to create the service
 1)factory
 2)service
 3)provider
 4)value
 5)constant
Service
 It is a singleton object. Use it when you need to
share a single object across the application
 app.service("service name",function()
 {
 this.member = function_1() {};
 this.member = function_2() {};
 .......
 });
 new service() // For calling the service new keyword
 Example: service.html
Factory :
 It is just a collection of functions like a class
 app.factory("factory name" , funcion()
 {
 var temp = {};
 temp.member = funcion()_1{};
 temp.member = funcion()_2{};
 ...
 return temp;
 });
 factory() // directly call
 Example : factory.html
AngularJS Routing
 The ngRoute module helps your application to
become a Single Page Application.
 If you want to navigate to different pages in your
application, but you also want the application to be a
SPA (Single Page Application), with no page
reloading, you can use the ngRoute module.
Overview
 Angular is way popular,
dynamic, and most
adaptable by the
enterprises. Every
project we did with
AngularJS — and we
mean every single one
— was designed and
developed to build an
enterprise solution with
the same methodology
and belief.
Angular js

More Related Content

What's hot (20)

PDF
Introduction To Angular 4 - J2I
Nader Debbabi
 
PPTX
Angular Js Basics
أحمد عبد الوهاب
 
PPTX
AngularJS Best Practices
Narek Mamikonyan
 
PPTX
Angular workshop - Full Development Guide
Nitin Giri
 
PDF
Angular JS tutorial
cncwebworld
 
PPTX
Angular 4 Introduction Tutorial
Scott Lee
 
PPTX
Angular js architecture (v1.4.8)
Gabi Costel Lapusneanu
 
PPTX
Angular js
Behind D Walls
 
PPSX
Angular js
Arun Somu Panneerselvam
 
PPTX
Migrating an Application from Angular 1 to Angular 2
Ross Dederer
 
PPTX
Understanding angular js
Aayush Shrestha
 
PPTX
Angular js PPT
Imtiyaz Ahmad Khan
 
DOCX
AngularJS
Ermir Hoxhaj
 
PPTX
Angular JS
John Temoty Roca
 
PDF
AngularJS
Hiten Pratap Singh
 
PPTX
Angularjs PPT
Amit Baghel
 
PDF
Mastering angular - Dot Net Tricks
Gaurav Singh
 
PPTX
Introduction to Angularjs
Manish Shekhawat
 
PDF
AngularJS - Services
Nir Kaufman
 
Introduction To Angular 4 - J2I
Nader Debbabi
 
Angular Js Basics
أحمد عبد الوهاب
 
AngularJS Best Practices
Narek Mamikonyan
 
Angular workshop - Full Development Guide
Nitin Giri
 
Angular JS tutorial
cncwebworld
 
Angular 4 Introduction Tutorial
Scott Lee
 
Angular js architecture (v1.4.8)
Gabi Costel Lapusneanu
 
Angular js
Behind D Walls
 
Migrating an Application from Angular 1 to Angular 2
Ross Dederer
 
Understanding angular js
Aayush Shrestha
 
Angular js PPT
Imtiyaz Ahmad Khan
 
AngularJS
Ermir Hoxhaj
 
Angular JS
John Temoty Roca
 
Angularjs PPT
Amit Baghel
 
Mastering angular - Dot Net Tricks
Gaurav Singh
 
Introduction to Angularjs
Manish Shekhawat
 
AngularJS - Services
Nir Kaufman
 

Similar to Angular js (20)

PPTX
Angular Basics.pptx
AshokKumar616995
 
PDF
One Weekend With AngularJS
Yashobanta Bai
 
PDF
AngularJS Basics
Ravi Mone
 
PPTX
Training On Angular Js
Mahima Radhakrishnan
 
PPTX
Angular Js Get Started - Complete Course
EPAM Systems
 
PPTX
angularJs Workshop
Ran Wahle
 
PPTX
Angular introduction basic
jagriti srivastava
 
PPTX
AngularJs Workshop SDP December 28th 2014
Ran Wahle
 
PPTX
Angular JS training institute in Jaipur
HEMANT SAXENA
 
PDF
AngularJS By Vipin
Vipin Mundayad
 
PPTX
Angular js slides
Amr Abd El Latief
 
PPTX
Angular tutorial
Rohit Gupta
 
PPTX
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Learnimtactics
 
PPTX
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
DOCX
Angular.js interview questions
codeandyou forums
 
PDF
Angular js interview question answer for fresher
Ravi Bhadauria
 
PDF
AngularJS in practice
Eugene Fidelin
 
PPT
introduction to Angularjs basics
Ravindra K
 
PPTX
Angularjs Basics
Anuradha Bandara
 
PPTX
Angular Javascript Tutorial with command
ssuser42b933
 
Angular Basics.pptx
AshokKumar616995
 
One Weekend With AngularJS
Yashobanta Bai
 
AngularJS Basics
Ravi Mone
 
Training On Angular Js
Mahima Radhakrishnan
 
Angular Js Get Started - Complete Course
EPAM Systems
 
angularJs Workshop
Ran Wahle
 
Angular introduction basic
jagriti srivastava
 
AngularJs Workshop SDP December 28th 2014
Ran Wahle
 
Angular JS training institute in Jaipur
HEMANT SAXENA
 
AngularJS By Vipin
Vipin Mundayad
 
Angular js slides
Amr Abd El Latief
 
Angular tutorial
Rohit Gupta
 
AngularJs Superheroic JavaScript MVW Framework Services by Miracle Studios
Learnimtactics
 
Dive into Angular, part 1: Introduction
Oleksii Prohonnyi
 
Angular.js interview questions
codeandyou forums
 
Angular js interview question answer for fresher
Ravi Bhadauria
 
AngularJS in practice
Eugene Fidelin
 
introduction to Angularjs basics
Ravindra K
 
Angularjs Basics
Anuradha Bandara
 
Angular Javascript Tutorial with command
ssuser42b933
 
Ad

Recently uploaded (20)

PPTX
Unlock the Power of Cursor AI: MuleSoft Integrations
Veera Pallapu
 
PPTX
Virus sequence retrieval from NCBI database
yamunaK13
 
PPT
DRUGS USED IN THERAPY OF SHOCK, Shock Therapy, Treatment or management of shock
Rajshri Ghogare
 
PPTX
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
PDF
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
PDF
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
PPTX
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
PPTX
I INCLUDED THIS TOPIC IS INTELLIGENCE DEFINITION, MEANING, INDIVIDUAL DIFFERE...
parmarjuli1412
 
PPTX
Translation_ Definition, Scope & Historical Development.pptx
DhatriParmar
 
PPTX
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
PDF
Virat Kohli- the Pride of Indian cricket
kushpar147
 
PDF
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
PPTX
Basics and rules of probability with real-life uses
ravatkaran694
 
PPTX
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
PPTX
THE JEHOVAH’S WITNESSES’ ENCRYPTED SATANIC CULT
Claude LaCombe
 
PPTX
Introduction to Probability(basic) .pptx
purohitanuj034
 
PDF
EXCRETION-STRUCTURE OF NEPHRON,URINE FORMATION
raviralanaresh2
 
PPTX
Cybersecurity: How to Protect your Digital World from Hackers
vaidikpanda4
 
PPTX
Electrophysiology_of_Heart. Electrophysiology studies in Cardiovascular syste...
Rajshri Ghogare
 
PDF
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Unlock the Power of Cursor AI: MuleSoft Integrations
Veera Pallapu
 
Virus sequence retrieval from NCBI database
yamunaK13
 
DRUGS USED IN THERAPY OF SHOCK, Shock Therapy, Treatment or management of shock
Rajshri Ghogare
 
Python-Application-in-Drug-Design by R D Jawarkar.pptx
Rahul Jawarkar
 
Module 2: Public Health History [Tutorial Slides]
JonathanHallett4
 
TOP 10 AI TOOLS YOU MUST LEARN TO SURVIVE IN 2025 AND ABOVE
digilearnings.com
 
Sonnet 130_ My Mistress’ Eyes Are Nothing Like the Sun By William Shakespear...
DhatriParmar
 
I INCLUDED THIS TOPIC IS INTELLIGENCE DEFINITION, MEANING, INDIVIDUAL DIFFERE...
parmarjuli1412
 
Translation_ Definition, Scope & Historical Development.pptx
DhatriParmar
 
INTESTINALPARASITES OR WORM INFESTATIONS.pptx
PRADEEP ABOTHU
 
Virat Kohli- the Pride of Indian cricket
kushpar147
 
My Thoughts On Q&A- A Novel By Vikas Swarup
Niharika
 
Basics and rules of probability with real-life uses
ravatkaran694
 
Cleaning Validation Ppt Pharmaceutical validation
Ms. Ashatai Patil
 
THE JEHOVAH’S WITNESSES’ ENCRYPTED SATANIC CULT
Claude LaCombe
 
Introduction to Probability(basic) .pptx
purohitanuj034
 
EXCRETION-STRUCTURE OF NEPHRON,URINE FORMATION
raviralanaresh2
 
Cybersecurity: How to Protect your Digital World from Hackers
vaidikpanda4
 
Electrophysiology_of_Heart. Electrophysiology studies in Cardiovascular syste...
Rajshri Ghogare
 
The-Invisible-Living-World-Beyond-Our-Naked-Eye chapter 2.pdf/8th science cur...
Sandeep Swamy
 
Ad

Angular js

  • 1. Present by : Ronak Patel
  • 2. Introduction  AngularJS is a complete JavaScript-based open- source front-end web application framework mainly maintained by Google.  Html , CSS , Java-script basic knowledge is require for learning Angular.  Its aims to simplify both development and testing.  Its provide the frame-work for MVC & MVVM architecture along with component use in the rich internet application
  • 3. Agenda  What is AngularJS ?  Why AngularJS ?  Features of AngularJS  Core Features  MVC Architecture  AngularJS Module  AngularJS Directives  Data-binding  Scope , Controller , Services , Filter  Dependency Injection  Services & Custom Factory  Routing
  • 4. What is Angular ?  Angular is a extension of Html ,CSS ,JavaScript library framework .  AngularJS is a powerful framework for create RICH Internet Application(RIA).  AngularJS is distributed as a JavaScript file, and can be added to a web page with a script tag: <script></script>  It Is use for develop single side web-applications.
  • 5. Why AngularJS ?  Single page application  Re-usability  Dependency Injection  Write less code  Security  Easy Integration  Data binding (example : Two way Binding )  Easy Testing
  • 6. Features Of Angular  AngularJS provides developers options to write client side application (using JavaScript) in a clean MVC(Model View Controller) way.  Organize web application at client side.  Faster , Secure  Re-usability  Good for Single-Page Application
  • 7. Core Features  Model View Controller  Data-binding  Scope  Controller  Services  Filters  Directives  Templates  Routing  Dependency Injection
  • 8. MVC Architecture (Model) (Database) Contains the data which is to be displayed in the view. (View) (HTML) Contains html tags to display the model data. (Controller) (JavaScript function) logic for loading data into model & calling the view
  • 9. AngularJS Modules  An AngularJS module defines an application.  Its contains the different parts of application.  Its container for application controller  Controller always belong to a module  It is created by angular.module function  <div ng-app="myApp">...</div> <script> var app = angular.module("myApp", []); </script>
  • 10. AngularJS Directives  Html elements tag is attribute its show the information about the particular item. (such details noting but attribute)  Attributes which are provided by the AngularJS are called as angular directives.  In angular there are two types of directives  Custom directives & Built-in directives  Ng-app : initializes an AngularJS application.  Ng-init : initializes application data.  Ng-model : binds the value of HTML controls (input, select, text area) to application data.  Example : init.html
  • 11.  Predefine directives (Its define with ng [its mean angular])  ng-dbl-click  ng-mouseover  ng-mouseout  ng-keypress  ng-keyup  ng-change  ng-disabled  ng-show  ng-hide  ng-class  ng-style
  • 12. Data-Binding  It is the automatic synchronization of data between model and view components.  Example : ng-bind , ng-model ,{{ }}
  • 13. Scope  These are objects that refer to the model. They act as a glue between controller and view.  The scope is the binding part between the HTML (view) and the JavaScript (controller).  The scope is available for both the view and the controller.  Example : Scope.html , two-way binding.html
  • 15. AngularJS Controllers  Controllers are JavaScript functions that are bound to a particular scope.  They are regular JavaScript Objects.  They control the data of AngularJS applications.  ng-controller  Example : two-way binding.html , Scope.html
  • 16. AngularJS Services  AngularJS has about 30 built-in services.  One of them is the $location service.  The $location service has methods which return information about the location of the current web page:  Example : location.html , timeout.html
  • 17. AngularJS Filters  Currency : Format a number to a currency format.  Date : Format a date to a specified format.  JSON : Format an object to a JSON string.  Lowercase: Format a string to lower case.  Uppercase : Format a string to upper case.  Number: Format a number to a string.  Order By : Orders an array by an expression.
  • 18. Dependency Injection  Dependency Injection is a software design pattern in which components are given their dependencies instead of hard coding them within the component.  In the angular the term dependency use in  function fun1()  { }  function fun2()  { }  Class dependency: one class object use in another class. that time create the problem.  Which lets you to create a dependent component without having the base component.  Example : scope.html
  • 19. Custom services & Custom Factories  Service : Angular services are java script functions and are responsible to do a specific tasks.  Angular provide the in-built services like  $http , $route , $window, $location  Five way to create the service  1)factory  2)service  3)provider  4)value  5)constant
  • 20. Service  It is a singleton object. Use it when you need to share a single object across the application  app.service("service name",function()  {  this.member = function_1() {};  this.member = function_2() {};  .......  });  new service() // For calling the service new keyword  Example: service.html
  • 21. Factory :  It is just a collection of functions like a class  app.factory("factory name" , funcion()  {  var temp = {};  temp.member = funcion()_1{};  temp.member = funcion()_2{};  ...  return temp;  });  factory() // directly call  Example : factory.html
  • 22. AngularJS Routing  The ngRoute module helps your application to become a Single Page Application.  If you want to navigate to different pages in your application, but you also want the application to be a SPA (Single Page Application), with no page reloading, you can use the ngRoute module.
  • 23. Overview  Angular is way popular, dynamic, and most adaptable by the enterprises. Every project we did with AngularJS — and we mean every single one — was designed and developed to build an enterprise solution with the same methodology and belief.