SlideShare a Scribd company logo
1 of 16
LEARNING & DEVELOPMENT
Introduction to
AngularJS
Presented by: Shyjal Raazi
Agenda
● Need of framework in SPA
● What is angularJS
● Features of angular
● Angular concepts
● How an angular app starts
● Two way data binding
● Directives
● Controllers
● View - Controller interaction
● Modules
● Services
● Routing
Why a framework
Things to consider for developing SPA
DOM manipulation
- how to manipulate view effectively
History
- What happens when pressing back button
Routing
- Readable urls
Data binding
- How to bind data from model to view
View Loading
- how to load view in html
Hence use Frameworks
SPA framework in Javascript
Implements client side mvc pattern
No direct manipulation of DOM, less code, less complexity
Supported by major browsers
Large and fast growing open source community
Help developers write more meaningful html
Features
● Dependency injection
● Two way data binding
● Declarative html approach
● Reusable components
● Routing
● Module based
Angular Concepts
● Templates
● Directive
● Expressions
● Data binding
● Scope
● Controllers
● Modules
● Filters
● Services
● Routing
How angular app starts
Two way binding
https://gist.github.com/shyjal/878ade7231c9a2ceab27
Directives
Directives are markers on a DOM element (such as an attribute, element
name, comment or CSS class)
Directives tell AngularJS's HTML compiler to attach a specified behavior to
that DOM element or even transform the DOM element and its children.
<body ng-app=”myapp”>
<ng-view></ng-view>
</body>
Controllers
Provides logic to your app
ng-controller directive specifies controller in html
Don't modify dom from controller. so how we communicate
with view?
var myApp = angular.module('myApp',[]);
myApp.controller('GreetingController', ['$scope',
function($scope) {
$scope.greeting = 'Hola!';
}]);
View - Controller interaction
$scope is an object that can be used to communicate
between view and controller
https://gist.github.com/shyjal/aa9a0e4b15029f7ea624
Modules
Re usable container for different features of an app or app itself
- controllers, services, filters, directives, etc.
Modules can be loaded in any order
No need of use require js like AMD’s as angular have
dependency injection mechanism
var myApp = angular.module('myApp',[ngRoute]);
Services
View-Independent business logic should not be in controller it should be in
service
Controllers are view specific but services are app specific
Demos
Angular tabs implementation :
https://gist.github.com/shyjal/bc40f48fbd8293caca6e
ng-repeat Example :
https://gist.github.com/shyjal/f0ab059d4df553991ea2
Routing
ngRoute (a module in angular package) / UI router ( Thirdparty )
Linking between pages, what should happen on back button, readable urls
Further
https://www.codeschool.com/courses/shaping-up-with-angular-js/
https://docs.angularjs.org/guide
https://www.airpair.com/angularjs/posts/angular-vs-react-the-tie-breaker

More Related Content

What's hot

Component based architecture
Component based architectureComponent based architecture
Component based architecture
Zaiyang Li
 

What's hot (20)

Single Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJSSingle Page Application (SPA) using AngularJS
Single Page Application (SPA) using AngularJS
 
Gettings started with the superheroic JavaScript library AngularJS
Gettings started with the superheroic JavaScript library AngularJSGettings started with the superheroic JavaScript library AngularJS
Gettings started with the superheroic JavaScript library AngularJS
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
Angular js anupama
Angular js anupamaAngular js anupama
Angular js anupama
 
Angularjs overview
Angularjs  overviewAngularjs  overview
Angularjs overview
 
Introduction to AngularJS Framework
Introduction to AngularJS FrameworkIntroduction to AngularJS Framework
Introduction to AngularJS Framework
 
Overview about AngularJS Framework
Overview about AngularJS Framework Overview about AngularJS Framework
Overview about AngularJS Framework
 
Single Page Applications in SharePoint with Angular
Single Page Applications in SharePoint with AngularSingle Page Applications in SharePoint with Angular
Single Page Applications in SharePoint with Angular
 
AngularJs (1.x) Presentation
AngularJs (1.x) PresentationAngularJs (1.x) Presentation
AngularJs (1.x) Presentation
 
AngularJS
AngularJSAngularJS
AngularJS
 
Responsive web design with Angularjs
Responsive web design with AngularjsResponsive web design with Angularjs
Responsive web design with Angularjs
 
Component based architecture
Component based architectureComponent based architecture
Component based architecture
 
Introduction to Android Programming
Introduction to Android ProgrammingIntroduction to Android Programming
Introduction to Android Programming
 
Angular js- 1.X
Angular js- 1.XAngular js- 1.X
Angular js- 1.X
 
Angular patterns
Angular patternsAngular patterns
Angular patterns
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
Angular.js - JS Camp UKraine 2013
Angular.js - JS Camp UKraine 2013Angular.js - JS Camp UKraine 2013
Angular.js - JS Camp UKraine 2013
 
Silver Light By Nyros Developer
Silver Light By Nyros DeveloperSilver Light By Nyros Developer
Silver Light By Nyros Developer
 
What's new in Angular 2?
What's new in Angular 2?What's new in Angular 2?
What's new in Angular 2?
 
React js
React jsReact js
React js
 

Similar to Introduction to AngularJS

Similar to Introduction to AngularJS (20)

Angular js 1.3 presentation for fed nov 2014
Angular js 1.3 presentation for fed   nov 2014Angular js 1.3 presentation for fed   nov 2014
Angular js 1.3 presentation for fed nov 2014
 
Intoduction to Angularjs
Intoduction to AngularjsIntoduction to Angularjs
Intoduction to Angularjs
 
Introduction to Angularjs
Introduction to AngularjsIntroduction to Angularjs
Introduction to Angularjs
 
AngularJS 101 - Everything you need to know to get started
AngularJS 101 - Everything you need to know to get startedAngularJS 101 - Everything you need to know to get started
AngularJS 101 - Everything you need to know to get started
 
Kalp Corporate Angular Js Tutorials
Kalp Corporate Angular Js TutorialsKalp Corporate Angular Js Tutorials
Kalp Corporate Angular Js Tutorials
 
Learning AngularJS - Complete coverage of AngularJS features and concepts
Learning AngularJS  - Complete coverage of AngularJS features and conceptsLearning AngularJS  - Complete coverage of AngularJS features and concepts
Learning AngularJS - Complete coverage of AngularJS features and concepts
 
Introduction to Angular Js
Introduction to Angular JsIntroduction to Angular Js
Introduction to Angular Js
 
Overview of the AngularJS framework
Overview of the AngularJS framework Overview of the AngularJS framework
Overview of the AngularJS framework
 
Angularjs basic part01
Angularjs basic part01Angularjs basic part01
Angularjs basic part01
 
AngularJS
AngularJSAngularJS
AngularJS
 
AngularJS is awesome
AngularJS is awesomeAngularJS is awesome
AngularJS is awesome
 
AngularJS By Vipin
AngularJS By VipinAngularJS By Vipin
AngularJS By Vipin
 
Angular js interview question answer for fresher
Angular js interview question answer for fresherAngular js interview question answer for fresher
Angular js interview question answer for fresher
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
 
Training On Angular Js
Training On Angular JsTraining On Angular Js
Training On Angular Js
 
Angular JS Indtrodution
Angular JS IndtrodutionAngular JS Indtrodution
Angular JS Indtrodution
 
Angular js
Angular jsAngular js
Angular js
 
Dive into Angular, part 1: Introduction
Dive into Angular, part 1: IntroductionDive into Angular, part 1: Introduction
Dive into Angular, part 1: Introduction
 
Angular workshop - Full Development Guide
Angular workshop - Full Development GuideAngular workshop - Full Development Guide
Angular workshop - Full Development Guide
 
Angular presentation
Angular presentationAngular presentation
Angular presentation
 

Recently uploaded

Recently uploaded (20)

Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 

Introduction to AngularJS

Editor's Notes

  1. This  presentation is customized for QBurst and addresses aspects of Attention to details in the Qburst environment.   The meticulous attention to detail at a micro level in this art form has resulted in a spectacular collection item.
  2. This  presentation is customized for QBurst and addresses aspects of Attention to details in the Qburst environment.   The meticulous attention to detail at a micro level in this art form has resulted in a spectacular collection item.
  3. This  presentation is customized for QBurst and addresses aspects of Attention to details in the Qburst environment.   The meticulous attention to detail at a micro level in this art form has resulted in a spectacular collection item.
  4. This  presentation is customized for QBurst and addresses aspects of Attention to details in the Qburst environment.   The meticulous attention to detail at a micro level in this art form has resulted in a spectacular collection item.
  5. This  presentation is customized for QBurst and addresses aspects of Attention to details in the Qburst environment.   The meticulous attention to detail at a micro level in this art form has resulted in a spectacular collection item.
  6. This  presentation is customized for QBurst and addresses aspects of Attention to details in the Qburst environment.   The meticulous attention to detail at a micro level in this art form has resulted in a spectacular collection item.
  7. This  presentation is customized for QBurst and addresses aspects of Attention to details in the Qburst environment.   The meticulous attention to detail at a micro level in this art form has resulted in a spectacular collection item.
  8. This  presentation is customized for QBurst and addresses aspects of Attention to details in the Qburst environment.   The meticulous attention to detail at a micro level in this art form has resulted in a spectacular collection item.
  9. This  presentation is customized for QBurst and addresses aspects of Attention to details in the Qburst environment.   The meticulous attention to detail at a micro level in this art form has resulted in a spectacular collection item.
  10. Test is available in word document under 'Attention to Detail' notes. This is a test that shows us how agile we are currently. It helps us gauge where we are with our attention to detail and helps us chart out what we need to do to improve this quality. The test clearly states that we need to pay very close attention to detail yet most of us seldom do.
  11. Test is available in word document under 'Attention to Detail' notes. This is a test that shows us how agile we are currently. It helps us gauge where we are with our attention to detail and helps us chart out what we need to do to improve this quality. The test clearly states that we need to pay very close attention to detail yet most of us seldom do.
  12. This  presentation is customized for QBurst and addresses aspects of Attention to details in the Qburst environment.   The meticulous attention to detail at a micro level in this art form has resulted in a spectacular collection item.
  13. Test is available in word document under 'Attention to Detail' notes. This is a test that shows us how agile we are currently. It helps us gauge where we are with our attention to detail and helps us chart out what we need to do to improve this quality. The test clearly states that we need to pay very close attention to detail yet most of us seldom do.
  14. This  presentation is customized for QBurst and addresses aspects of Attention to details in the Qburst environment.   The meticulous attention to detail at a micro level in this art form has resulted in a spectacular collection item.