SlideShare ist ein Scribd-Unternehmen logo
1 von 21
Downloaden Sie, um offline zu lesen
AngularJS
An introduction for the uninitiated
Why Do I need Angular?
● Resource management (managed AJAX)
● View templating
● Filtering (text formatting, and array selection)
● Semantic, reusable templates (directives)
● Two-way data binding (no more callbacks)
● Managed event bindings
● Routing for multiple client side views
Besides...
Its 2014. Everyone uses Javascript. The key is
managing it effectively
You probably have homegrown solutions for
the bullet points on the previous slide. Eww.
Trust Them...They are Experts
AngularJS Resources
Forget $ajax() in favor of $resource()
With one command, you wrap a RESTful
resource and are provided: get, save, query,
delete
Uses promises for callback management
View Templating
Angular has powerful templating directives to
iterate over JS objects
ng-repeat, ng-if, ng-unless, ng-show, ng-class,
etc
Divorces presentation from data - send JSON
Filtering
Inside brackets, can “pipe” date to filter for
formatting
currency, date, lowercase, uppercase, orderBy,
etc
Can be done in the view, or in Javascript
Directives
Directives allow reusable pieces of HTML and
event bindings
Can be used for semantic markup, matching
element name, attribute, or class
“Templates” by any other name
Two Way Data Binding
Angular applies all its evaluations when
watched data changes
No binding to onkeyup, onkeydown, etc events
Keeps everything in sync
Event binding
Moves event binding back to views
ng-click, ng-submit, etc
Binds to functions in the controller. Two way
data binding takes care of a lot of the screen
updates w/o explicit events
Routing
Client side solution for managing hyperlinks
Can extract params from the URL similar to
Rails routes
Makes use of HTML5 location features to work
with back button
When Would AngularJS be Good?
Javascript-rich, client-side interactions
Anywhere with a lot of unstructured Javascript
binding to DOM and events
Anywhere multiple updates need to be made to
the screen when data changes
Where Would AngularJS be Bad?
Simple Javascript manipulations - creating an
ng-controller is probably overkill for display
toggles, etc
Questions from the
Audience

Weitere Àhnliche Inhalte

Was ist angesagt?

Backbone introdunction
Backbone introdunctionBackbone introdunction
Backbone introdunctionmzxbupt
 
angularJS Practicle Explanation
angularJS Practicle ExplanationangularJS Practicle Explanation
angularJS Practicle ExplanationAbhishek Sahu
 
Trustparency Mobile Architecture
Trustparency  Mobile ArchitectureTrustparency  Mobile Architecture
Trustparency Mobile Architecturetrustparency
 
Ajax Basics And Framework
Ajax Basics And FrameworkAjax Basics And Framework
Ajax Basics And Frameworkshivas
 
Overview of AJAX
Overview of AJAXOverview of AJAX
Overview of AJAXRoshith S Pai
 
Ajax Presentation
Ajax PresentationAjax Presentation
Ajax Presentationjrdoane
 
Building single page applications with angular.js
Building single page applications with angular.jsBuilding single page applications with angular.js
Building single page applications with angular.jsDieter De Mesmaeker
 
Single page applications mit asp.net mvc und der asp.net web api
Single page applications mit asp.net mvc und der asp.net web apiSingle page applications mit asp.net mvc und der asp.net web api
Single page applications mit asp.net mvc und der asp.net web apiAlexander Zeitler
 
Angular js- 1.X
Angular js- 1.XAngular js- 1.X
Angular js- 1.XNitin Giri
 
Who's afraid of front end databases
Who's afraid of front end databasesWho's afraid of front end databases
Who's afraid of front end databasesGil Fink
 
The SAM Pattern: a Distributed System View of Front-End Architectures
The SAM Pattern: a Distributed System View of Front-End ArchitecturesThe SAM Pattern: a Distributed System View of Front-End Architectures
The SAM Pattern: a Distributed System View of Front-End ArchitecturesJean-Jacques Dubray
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVCSunpawet Somsin
 
ASP.net MVC CodeCamp Presentation
ASP.net MVC CodeCamp PresentationASP.net MVC CodeCamp Presentation
ASP.net MVC CodeCamp Presentationbuildmaster
 
SoftServe - "ASP.NET MVC яĐș ĐœĐ°ŃŃ‚ŃƒĐżĐœĐžĐč ĐșŃ€ĐŸĐș у Ń€ĐŸĐ·ĐČотĐșу Ń‚Đ”Ń…ĐœĐŸĐ»ĐŸĐłŃ–Ń— Ń€ĐŸĐ·Ń€ĐŸĐ±ĐșĐž Web...
SoftServe - "ASP.NET MVC яĐș ĐœĐ°ŃŃ‚ŃƒĐżĐœĐžĐč ĐșŃ€ĐŸĐș у Ń€ĐŸĐ·ĐČотĐșу Ń‚Đ”Ń…ĐœĐŸĐ»ĐŸĐłŃ–Ń— Ń€ĐŸĐ·Ń€ĐŸĐ±ĐșĐž Web...SoftServe - "ASP.NET MVC яĐș ĐœĐ°ŃŃ‚ŃƒĐżĐœĐžĐč ĐșŃ€ĐŸĐș у Ń€ĐŸĐ·ĐČотĐșу Ń‚Đ”Ń…ĐœĐŸĐ»ĐŸĐłŃ–Ń— Ń€ĐŸĐ·Ń€ĐŸĐ±ĐșĐž Web...
SoftServe - "ASP.NET MVC яĐș ĐœĐ°ŃŃ‚ŃƒĐżĐœĐžĐč ĐșŃ€ĐŸĐș у Ń€ĐŸĐ·ĐČотĐșу Ń‚Đ”Ń…ĐœĐŸĐ»ĐŸĐłŃ–Ń— Ń€ĐŸĐ·Ń€ĐŸĐ±ĐșĐž Web...SoftServe
 
I Love API's 2015 Conference Overview
I Love API's 2015 Conference OverviewI Love API's 2015 Conference Overview
I Love API's 2015 Conference OverviewDennis Khan
 

Was ist angesagt? (20)

Backbone introdunction
Backbone introdunctionBackbone introdunction
Backbone introdunction
 
angularJS Practicle Explanation
angularJS Practicle ExplanationangularJS Practicle Explanation
angularJS Practicle Explanation
 
Trustparency Mobile Architecture
Trustparency  Mobile ArchitectureTrustparency  Mobile Architecture
Trustparency Mobile Architecture
 
Ajax Basics And Framework
Ajax Basics And FrameworkAjax Basics And Framework
Ajax Basics And Framework
 
Ajax Ppt 1
Ajax Ppt 1Ajax Ppt 1
Ajax Ppt 1
 
Ajax ppt
Ajax pptAjax ppt
Ajax ppt
 
Overview of AJAX
Overview of AJAXOverview of AJAX
Overview of AJAX
 
Ajax Presentation
Ajax PresentationAjax Presentation
Ajax Presentation
 
Building single page applications with angular.js
Building single page applications with angular.jsBuilding single page applications with angular.js
Building single page applications with angular.js
 
Single page applications mit asp.net mvc und der asp.net web api
Single page applications mit asp.net mvc und der asp.net web apiSingle page applications mit asp.net mvc und der asp.net web api
Single page applications mit asp.net mvc und der asp.net web api
 
Angular js- 1.X
Angular js- 1.XAngular js- 1.X
Angular js- 1.X
 
Who's afraid of front end databases
Who's afraid of front end databasesWho's afraid of front end databases
Who's afraid of front end databases
 
The SAM Pattern: a Distributed System View of Front-End Architectures
The SAM Pattern: a Distributed System View of Front-End ArchitecturesThe SAM Pattern: a Distributed System View of Front-End Architectures
The SAM Pattern: a Distributed System View of Front-End Architectures
 
Ajax PPT
Ajax PPTAjax PPT
Ajax PPT
 
Ajax
AjaxAjax
Ajax
 
Angular js anupama
Angular js anupamaAngular js anupama
Angular js anupama
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
ASP.net MVC CodeCamp Presentation
ASP.net MVC CodeCamp PresentationASP.net MVC CodeCamp Presentation
ASP.net MVC CodeCamp Presentation
 
SoftServe - "ASP.NET MVC яĐș ĐœĐ°ŃŃ‚ŃƒĐżĐœĐžĐč ĐșŃ€ĐŸĐș у Ń€ĐŸĐ·ĐČотĐșу Ń‚Đ”Ń…ĐœĐŸĐ»ĐŸĐłŃ–Ń— Ń€ĐŸĐ·Ń€ĐŸĐ±ĐșĐž Web...
SoftServe - "ASP.NET MVC яĐș ĐœĐ°ŃŃ‚ŃƒĐżĐœĐžĐč ĐșŃ€ĐŸĐș у Ń€ĐŸĐ·ĐČотĐșу Ń‚Đ”Ń…ĐœĐŸĐ»ĐŸĐłŃ–Ń— Ń€ĐŸĐ·Ń€ĐŸĐ±ĐșĐž Web...SoftServe - "ASP.NET MVC яĐș ĐœĐ°ŃŃ‚ŃƒĐżĐœĐžĐč ĐșŃ€ĐŸĐș у Ń€ĐŸĐ·ĐČотĐșу Ń‚Đ”Ń…ĐœĐŸĐ»ĐŸĐłŃ–Ń— Ń€ĐŸĐ·Ń€ĐŸĐ±ĐșĐž Web...
SoftServe - "ASP.NET MVC яĐș ĐœĐ°ŃŃ‚ŃƒĐżĐœĐžĐč ĐșŃ€ĐŸĐș у Ń€ĐŸĐ·ĐČотĐșу Ń‚Đ”Ń…ĐœĐŸĐ»ĐŸĐłŃ–Ń— Ń€ĐŸĐ·Ń€ĐŸĐ±ĐșĐž Web...
 
I Love API's 2015 Conference Overview
I Love API's 2015 Conference OverviewI Love API's 2015 Conference Overview
I Love API's 2015 Conference Overview
 

Ähnlich wie Angular.js - An introduction for the unitiated

AngularJS Workshop
AngularJS WorkshopAngularJS Workshop
AngularJS WorkshopGianluca Cacace
 
AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)Nitya Narasimhan
 
Practical AngularJS
Practical AngularJSPractical AngularJS
Practical AngularJSWei Ru
 
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 2014Sarah Hudson
 
MeteorJS Introduction
MeteorJS IntroductionMeteorJS Introduction
MeteorJS IntroductionNitya Narasimhan
 
Intro to AngularJs
Intro to AngularJsIntro to AngularJs
Intro to AngularJsSolTech, Inc.
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJSAnass90
 
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJSAngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJSmurtazahaveliwala
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseEPAM Systems
 
Client Side MVC & Angular
Client Side MVC & AngularClient Side MVC & Angular
Client Side MVC & AngularAlexe Bogdan
 
Angular Project Report
 Angular Project Report Angular Project Report
Angular Project ReportKodexhub
 
Angular JS training institute in Jaipur
           Angular JS training institute in Jaipur           Angular JS training institute in Jaipur
Angular JS training institute in JaipurHEMANT SAXENA
 
Introduction to single page application with angular js
Introduction to single page application with angular jsIntroduction to single page application with angular js
Introduction to single page application with angular jsMindfire Solutions
 
Dive into AngularJS and directives
Dive into AngularJS and directivesDive into AngularJS and directives
Dive into AngularJS and directivesTricode (part of Dept)
 
Understanding angular js
Understanding angular jsUnderstanding angular js
Understanding angular jsAayush Shrestha
 
AngularJS Beginner Day One
AngularJS Beginner Day OneAngularJS Beginner Day One
AngularJS Beginner Day OneTroy Miles
 

Ähnlich wie Angular.js - An introduction for the unitiated (20)

AngularJS Workshop
AngularJS WorkshopAngularJS Workshop
AngularJS Workshop
 
AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)AngularJS Deep Dives (NYC GDG Apr 2013)
AngularJS Deep Dives (NYC GDG Apr 2013)
 
Practical AngularJS
Practical AngularJSPractical AngularJS
Practical AngularJS
 
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
 
MeteorJS Introduction
MeteorJS IntroductionMeteorJS Introduction
MeteorJS Introduction
 
Intro to AngularJs
Intro to AngularJsIntro to AngularJs
Intro to AngularJs
 
Angular js
Angular jsAngular js
Angular js
 
Introduction to AngularJS
Introduction to AngularJSIntroduction to AngularJS
Introduction to AngularJS
 
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJSAngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
AngularJS training - Day 1 - Basics: Why, What and basic features of AngularJS
 
Angular Js Get Started - Complete Course
Angular Js Get Started - Complete CourseAngular Js Get Started - Complete Course
Angular Js Get Started - Complete Course
 
Mean PPT
Mean PPTMean PPT
Mean PPT
 
Angular js
Angular jsAngular js
Angular js
 
Client Side MVC & Angular
Client Side MVC & AngularClient Side MVC & Angular
Client Side MVC & Angular
 
Angular Project Report
 Angular Project Report Angular Project Report
Angular Project Report
 
Angular JS training institute in Jaipur
           Angular JS training institute in Jaipur           Angular JS training institute in Jaipur
Angular JS training institute in Jaipur
 
Introduction to single page application with angular js
Introduction to single page application with angular jsIntroduction to single page application with angular js
Introduction to single page application with angular js
 
Dive into AngularJS and directives
Dive into AngularJS and directivesDive into AngularJS and directives
Dive into AngularJS and directives
 
Understanding angular js
Understanding angular jsUnderstanding angular js
Understanding angular js
 
AngularJs
AngularJsAngularJs
AngularJs
 
AngularJS Beginner Day One
AngularJS Beginner Day OneAngularJS Beginner Day One
AngularJS Beginner Day One
 

Mehr von thehoagie

Pair programming
Pair programmingPair programming
Pair programmingthehoagie
 
Docker presentation
Docker presentationDocker presentation
Docker presentationthehoagie
 
Database 101
Database 101Database 101
Database 101thehoagie
 
Testing
TestingTesting
Testingthehoagie
 
Git Pro Tips
Git Pro TipsGit Pro Tips
Git Pro Tipsthehoagie
 
Null object pattern
Null object patternNull object pattern
Null object patternthehoagie
 
Big tables and you - Keeping DDL operatations fast
Big tables and you - Keeping DDL operatations fastBig tables and you - Keeping DDL operatations fast
Big tables and you - Keeping DDL operatations fastthehoagie
 
Regular expression presentation for the HUB
Regular expression presentation for the HUBRegular expression presentation for the HUB
Regular expression presentation for the HUBthehoagie
 
Converting your JS library to a jQuery plugin
Converting your JS library to a jQuery pluginConverting your JS library to a jQuery plugin
Converting your JS library to a jQuery pluginthehoagie
 
Active records before_type_cast
Active records before_type_castActive records before_type_cast
Active records before_type_castthehoagie
 

Mehr von thehoagie (11)

Pair programming
Pair programmingPair programming
Pair programming
 
Docker presentation
Docker presentationDocker presentation
Docker presentation
 
Database 101
Database 101Database 101
Database 101
 
Testing
TestingTesting
Testing
 
Hubot
HubotHubot
Hubot
 
Git Pro Tips
Git Pro TipsGit Pro Tips
Git Pro Tips
 
Null object pattern
Null object patternNull object pattern
Null object pattern
 
Big tables and you - Keeping DDL operatations fast
Big tables and you - Keeping DDL operatations fastBig tables and you - Keeping DDL operatations fast
Big tables and you - Keeping DDL operatations fast
 
Regular expression presentation for the HUB
Regular expression presentation for the HUBRegular expression presentation for the HUB
Regular expression presentation for the HUB
 
Converting your JS library to a jQuery plugin
Converting your JS library to a jQuery pluginConverting your JS library to a jQuery plugin
Converting your JS library to a jQuery plugin
 
Active records before_type_cast
Active records before_type_castActive records before_type_cast
Active records before_type_cast
 

KĂŒrzlich hochgeladen

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 2024The Digital Insurer
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vĂĄzquez
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024SynarionITSolutions
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024The Digital Insurer
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesBoston Institute of Analytics
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
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 Processorsdebabhi2
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
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 educationjfdjdjcjdnsjd
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProduct Anonymous
 
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...apidays
 

KĂŒrzlich hochgeladen (20)

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
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
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
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
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...
 

Angular.js - An introduction for the unitiated

  • 2. Why Do I need Angular? ● Resource management (managed AJAX) ● View templating ● Filtering (text formatting, and array selection) ● Semantic, reusable templates (directives) ● Two-way data binding (no more callbacks) ● Managed event bindings ● Routing for multiple client side views
  • 3. Besides... Its 2014. Everyone uses Javascript. The key is managing it effectively You probably have homegrown solutions for the bullet points on the previous slide. Eww.
  • 5. AngularJS Resources Forget $ajax() in favor of $resource() With one command, you wrap a RESTful resource and are provided: get, save, query, delete Uses promises for callback management
  • 6.
  • 7. View Templating Angular has powerful templating directives to iterate over JS objects ng-repeat, ng-if, ng-unless, ng-show, ng-class, etc Divorces presentation from data - send JSON
  • 8.
  • 9. Filtering Inside brackets, can “pipe” date to filter for formatting currency, date, lowercase, uppercase, orderBy, etc Can be done in the view, or in Javascript
  • 10.
  • 11. Directives Directives allow reusable pieces of HTML and event bindings Can be used for semantic markup, matching element name, attribute, or class “Templates” by any other name
  • 12.
  • 13. Two Way Data Binding Angular applies all its evaluations when watched data changes No binding to onkeyup, onkeydown, etc events Keeps everything in sync
  • 14.
  • 15. Event binding Moves event binding back to views ng-click, ng-submit, etc Binds to functions in the controller. Two way data binding takes care of a lot of the screen updates w/o explicit events
  • 16.
  • 17. Routing Client side solution for managing hyperlinks Can extract params from the URL similar to Rails routes Makes use of HTML5 location features to work with back button
  • 18.
  • 19. When Would AngularJS be Good? Javascript-rich, client-side interactions Anywhere with a lot of unstructured Javascript binding to DOM and events Anywhere multiple updates need to be made to the screen when data changes
  • 20. Where Would AngularJS be Bad? Simple Javascript manipulations - creating an ng-controller is probably overkill for display toggles, etc