SlideShare a Scribd company logo
Introduction of
           AngularJS
By : Tamer Solieman
What's AngularJS
● Why Called ng.
● Is AngularJS a library, framework, plugin
  or a browser extension?
● Is AngularJS a templating system?
● What browsers does AngularJS work with?
● Does AngularJS use the jQuery library?
● It was developed by Google.
  AngularJS came about to standardize web application structure and
  provide a future template for how client-side apps should be developed.
Why AngularJS?
●   Bootstrapping
●   Templates
●   2-way data binding
●   Dependency Injection
●   Routing
●   Directives
BOOTSTRAPPING
                           Step 1:
                         <html ng-app>

                          Step 2 :
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5
                     /angular.min.js"></script>
TEMPLATES
<ul>
    <li ng-repeat = "item in [ 'web' , 'element' , '#14'] ">
         {{item}}
    </li>
</ul>



This will result :
                             ●   web
                             ●   eleent
                             ●   #14
TEMPLATES
● with Controller
  ○ JS
  myApp.controller('TemplatesController',function($scope){
      $scope.items=['web','element','#14'];
  });


  ○ Template
  <div ng-controller="TemplatesController">
      <span ng-repeat="item in items">
           {{item}} <small> {{$index}} </small>
      </span>
  </div>
TEMPLATES
● Async Templates
  <div ng-view ><!-- Only one on the page -->



But You can use this
  <div ng-include = "templates/foo.html" >


                 with nested levels ;-)

         AngularJS loads the templates
                asynchronously.
2-WAY DATA BINDING
● MVVM Pattern




● $scope Object
2-WAY DATA BINDING
DEPENDENCY INJECTION

myApp.service('myService',function(){/*...*/});

myApp.controller('SomeItemsController',function(myService){
   //myService was automatically injected

      myService.get('some/path').success(function(data){
          $scope.items=data.items;
      });
});
ROUTING
$routeProvider
myApp.config(['$routeProvider',function($rp){
     $rp
         .when('/foo',{
             templateUrl : 'tpl/foo.html',
             controller : FooController
             })
             .otherwise({ redirectTo : '/bar' });
}]);
DIRECTIVES
● Directives let you invent new HTML
  syntax, specific to your application.
● Reusable Components.
● Localization.
THANKS

Author : Tamer Solieman

Twitter: @tamersolieman

G+ : gplus.to/tamersolieman

More Related Content

PPTX
AngularJs (1.x) Presentation
Raghubir Singh
 
PPTX
Angular js 1.3 presentation for fed nov 2014
Sarah Hudson
 
PPTX
Angular js presentation at Datacom
David Xi Peng Yang
 
PPTX
Angular JS - Introduction
Sagar Acharya
 
PPTX
Introduction to Angularjs
Manish Shekhawat
 
PDF
Angularjs architecture
Michael He
 
PDF
Introduction to AngularJS
Jussi Pohjolainen
 
PPTX
Angular js PPT
Imtiyaz Ahmad Khan
 
AngularJs (1.x) Presentation
Raghubir Singh
 
Angular js 1.3 presentation for fed nov 2014
Sarah Hudson
 
Angular js presentation at Datacom
David Xi Peng Yang
 
Angular JS - Introduction
Sagar Acharya
 
Introduction to Angularjs
Manish Shekhawat
 
Angularjs architecture
Michael He
 
Introduction to AngularJS
Jussi Pohjolainen
 
Angular js PPT
Imtiyaz Ahmad Khan
 

What's hot (20)

PPTX
5 angularjs features
Alexey (Mr_Mig) Migutsky
 
PDF
AngularJS introduction
Tania Gonzales
 
PPTX
AngularJS intro
dizabl
 
PDF
AngularJS - What is it & Why is it awesome ? (with demos)
Gary Arora
 
PPTX
Introduction to AngularJS
David Parsons
 
PPTX
Angular js for beginners
Munir Hoque
 
PDF
Angular js
Knoldus Inc.
 
PPTX
The AngularJS way
Boyan Mihaylov
 
PPTX
AngularJS Beginners Workshop
Sathish VJ
 
PDF
AngularJS 101 - Everything you need to know to get started
Stéphane Bégaudeau
 
PDF
AngularJS: an introduction
Luigi De Russis
 
PPTX
Why angular js Framework
Sakthi Bro
 
PPTX
Angular js 1.3 basic tutorial
Al-Mutaz Bellah Salahat
 
PPTX
Front end development with Angular JS
Bipin
 
PDF
AngularJS
Hiten Pratap Singh
 
PPTX
Angular js
Dinusha Nandika
 
PPTX
Step by Step - AngularJS
Infragistics
 
PPTX
AngularJS Best Practices
Narek Mamikonyan
 
PPTX
Angular js tutorial slides
samhelman
 
PDF
AngularJS: Overview & Key Features
Mohamad Al Asmar
 
5 angularjs features
Alexey (Mr_Mig) Migutsky
 
AngularJS introduction
Tania Gonzales
 
AngularJS intro
dizabl
 
AngularJS - What is it & Why is it awesome ? (with demos)
Gary Arora
 
Introduction to AngularJS
David Parsons
 
Angular js for beginners
Munir Hoque
 
Angular js
Knoldus Inc.
 
The AngularJS way
Boyan Mihaylov
 
AngularJS Beginners Workshop
Sathish VJ
 
AngularJS 101 - Everything you need to know to get started
Stéphane Bégaudeau
 
AngularJS: an introduction
Luigi De Russis
 
Why angular js Framework
Sakthi Bro
 
Angular js 1.3 basic tutorial
Al-Mutaz Bellah Salahat
 
Front end development with Angular JS
Bipin
 
Angular js
Dinusha Nandika
 
Step by Step - AngularJS
Infragistics
 
AngularJS Best Practices
Narek Mamikonyan
 
Angular js tutorial slides
samhelman
 
AngularJS: Overview & Key Features
Mohamad Al Asmar
 
Ad

Similar to Introduction of angular js (20)

PPTX
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
PDF
Hey, I just met AngularJS, and this is crazy, so here’s my JavaScript, let’s ...
Alessandro Nadalin
 
PPTX
Angular patterns
Premkumar M
 
PDF
AngularJs
Abdhesh Kumar
 
PDF
Angularjs 131211063348-phpapp01
Arunangsu Sahu
 
PPT
Angular js
yogi_solanki
 
PPTX
01 startoff angularjs
Erhwen Kuo
 
DOCX
angularjs_tutorial.docx
telegramvip
 
PDF
Angularjs
Ynon Perek
 
PDF
Leveling up with AngularJS
Austin Condiff
 
PDF
Introduction to AngularJS By Bharat Makwana
Bharat Makwana
 
PPTX
ME vs WEB - AngularJS Fundamentals
Aviran Cohen
 
PDF
Everything You Need To Know About AngularJS
Sina Mirhejazi
 
PDF
AngularJS Basics
Ravi Mone
 
PPTX
Angular js slides
Amr Abd El Latief
 
PPT
Getting started with angular js
Maurice De Beijer [MVP]
 
PDF
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
George Nguyen
 
PPTX
Angular js
Mauro Servienti
 
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
murtazahaveliwala
 
Hey, I just met AngularJS, and this is crazy, so here’s my JavaScript, let’s ...
Alessandro Nadalin
 
Angular patterns
Premkumar M
 
AngularJs
Abdhesh Kumar
 
Angularjs 131211063348-phpapp01
Arunangsu Sahu
 
Angular js
yogi_solanki
 
01 startoff angularjs
Erhwen Kuo
 
angularjs_tutorial.docx
telegramvip
 
Angularjs
Ynon Perek
 
Leveling up with AngularJS
Austin Condiff
 
Introduction to AngularJS By Bharat Makwana
Bharat Makwana
 
ME vs WEB - AngularJS Fundamentals
Aviran Cohen
 
Everything You Need To Know About AngularJS
Sina Mirhejazi
 
AngularJS Basics
Ravi Mone
 
Angular js slides
Amr Abd El Latief
 
Getting started with angular js
Maurice De Beijer [MVP]
 
gDayX 2013 - Advanced AngularJS - Nicolas Embleton
George Nguyen
 
Angular js
Mauro Servienti
 
Ad

Recently uploaded (20)

PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PPT
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
PDF
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Doc9.....................................
SofiaCollazos
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PPTX
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PDF
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
PPTX
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
This slide provides an overview Technology
mineshkharadi333
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
Beyond Automation: The Role of IoT Sensor Integration in Next-Gen Industries
Rejig Digital
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Doc9.....................................
SofiaCollazos
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
Software Development Methodologies in 2025
KodekX
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Presentation about Hardware and Software in Computer
snehamodhawadiya
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
OA presentation.pptx OA presentation.pptx
pateldhruv002338
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
A Strategic Analysis of the MVNO Wave in Emerging Markets.pdf
IPLOOK Networks
 
ChatGPT's Deck on The Enduring Legacy of Fax Machines
Greg Swan
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
This slide provides an overview Technology
mineshkharadi333
 

Introduction of angular js