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

PPTX
Angular JS, steal the idea
Scott Lee
 
PDF
Angular 4 for Java Developers
Yakov Fain
 
PPTX
AngularJS Beginners Workshop
Sathish VJ
 
PPTX
Introduction to AngularJS
David Parsons
 
PPTX
AngularJs presentation
Phan Tuan
 
PPTX
Intoduction to Angularjs
Gaurav Agrawal
 
PPTX
The Basics Angular JS
OrisysIndia
 
PPTX
Angular 4 and TypeScript
Ahmed El-Kady
 
Angular JS, steal the idea
Scott Lee
 
Angular 4 for Java Developers
Yakov Fain
 
AngularJS Beginners Workshop
Sathish VJ
 
Introduction to AngularJS
David Parsons
 
AngularJs presentation
Phan Tuan
 
Intoduction to Angularjs
Gaurav Agrawal
 
The Basics Angular JS
OrisysIndia
 
Angular 4 and TypeScript
Ahmed El-Kady
 

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
 
Ad

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
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
PDF
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
DOCX
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
PDF
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
PPTX
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
DOCX
UPPER GASTRO INTESTINAL DISORDER.docx
BANDITA PATRA
 
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
PPTX
Introduction and Scope of Bichemistry.pptx
shantiyogi
 
PPTX
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
PDF
High Ground Student Revision Booklet Preview
jpinnuck
 
PDF
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
PDF
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PDF
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
PPTX
Open Quiz Monsoon Mind Game Prelims.pptx
Sourav Kr Podder
 
PPTX
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
PDF
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
PPTX
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
PPTX
Understanding operators in c language.pptx
auteharshil95
 
PPTX
Congenital Hypothyroidism pptx
AneetaSharma15
 
Dakar Framework Education For All- 2000(Act)
santoshmohalik1
 
Review of Related Literature & Studies.pdf
Thelma Villaflores
 
Action Plan_ARAL PROGRAM_ STAND ALONE SHS.docx
Levenmartlacuna1
 
Arihant Class 10 All in One Maths full pdf
sajal kumar
 
Information Texts_Infographic on Forgetting Curve.pptx
Tata Sevilla
 
UPPER GASTRO INTESTINAL DISORDER.docx
BANDITA PATRA
 
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
Miraj Khan
 
Introduction and Scope of Bichemistry.pptx
shantiyogi
 
Software Engineering BSC DS UNIT 1 .pptx
Dr. Pallawi Bulakh
 
High Ground Student Revision Booklet Preview
jpinnuck
 
What is CFA?? Complete Guide to the Chartered Financial Analyst Program
sp4989653
 
Sunset Boulevard Student Revision Booklet
jpinnuck
 
PG-BPSDMP 2 TAHUN 2025PG-BPSDMP 2 TAHUN 2025.pdf
AshifaRamadhani
 
Open Quiz Monsoon Mind Game Prelims.pptx
Sourav Kr Podder
 
ACUTE NASOPHARYNGITIS. pptx
AneetaSharma15
 
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
RAKESH SAJJAN
 
1.Natural-Resources-and-Their-Use.ppt pdf /8th class social science Exploring...
Sandeep Swamy
 
family health care settings home visit - unit 6 - chn 1 - gnm 1st year.pptx
Priyanshu Anand
 
Understanding operators in c language.pptx
auteharshil95
 
Congenital Hypothyroidism pptx
AneetaSharma15
 

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.