SlideShare a Scribd company logo
Angular and the ArcGIS API
for JavaScript
Seth Batterby, Esri UK
What am I going to cover?
• Angular
- What is it?
- Why we use it?
• Angular and the ArcGIS API for JavaScript
- Using the Esri loader
- Using Exclude and Require
- Esri webpack plugin
Esri UK Annual Conference 2018 | London
Angular – What is it?
• An open source web development framework
• Its more than just a framework!
- Develop across platforms
- End to end tooling
- Templating
- Routing
- Components
Esri UK Annual Conference 2018 | London
Angular – Why do we use it?
• Well suited for large and complex applications
• Makes it easy to implement complex requirements
• Write code in TypeScript, cutting down on bugs and errors
• Lots of tools to speed up development
Esri UK Annual Conference 2018 | London
Sweet AppBuilder
Esri UK Annual Conference 2018 | London
• Complex Angular application
• We use a lot of the Angular Framework
- Animations, Components, Reactive
Forms, Routing, Guards, Resolvers
• Use webpack for builds
• ArcGIS API for JS is used throughout
Angular and the ArcGIS API for JavaScript
- The ArcGIS API for JavaScript is written in Dojo
- It’s a large library of AMD modules
- Most module loaders implement AMD differently than Dojo
We need some workarounds to get Angular and the JS API working
together.
Esri UK Annual Conference 2018 | London
esri-loader
- A tiny library to help load modules
- Written and maintained by Esri
- Lets you control when the API is
loaded
- Can use with 3.x or 4.x versions of
the API
Esri UK Annual Conference 2018 | London
esri-loader
• Pros
- Allows for lazy loading modules, when you need them
- Zero configuration
- Can be used with other frameworks
• Cons
- Have to use complicated async patterns and callbacks
- Cant use import statements
Esri UK Annual Conference 2018 | London
Exclude and Require
Provides a slightly higher level of abstraction
There's a lot more configuration to handle
1. Configure webpack to exclude Dojo modules
2. Output bundles as AMD
3. Load ArcGIS API for JavaScript via a script tag
4. Use Dojo loader to require the bundles
Esri UK Annual Conference 2018 | London
Exclude and Require
• Pros
- Can use Imports for loading modules
- No need to use Promises or callbacks
• Cons
- Can slow down application startup
- Needs some configuration to get working
Esri UK Annual Conference 2018 | London
Esri webpack Plugin (New)
• Pros
- Same as the Exclude and Require pattern but in a handy plugin!
- Much less configuration needed
- Should be future proof
• Cons
- Only works with ArcGIS API >= v4.7
- Only works with webpack
Esri UK Annual Conference 2018 | London
Summary
- Angular
- Great for building complex applications
- There's a steep learning curve
- Wouldn’t recommend it for small applications
- ArcGIS API for JS
- 3 different patterns for loading
- esri-loader most popular
- New webpack plugin is the future!
Esri UK Annual Conference 2018 | London
Additional Resources
• Tom Wayson: How to load ArcGIS API for JavaScript modules
• Esri loader
- Esri loader repository
• Exclude and Require
- Tom Wayson: Using webpack
- Angular 2 with Esri API and webpack
• Webpack plugin
- Using the new webpack plugin for the ArcGIS API for JavaScript
- Webpack-plugin repository
Esri UK Annual Conference 2018 | London
All About Angular and ArcGIS - Developers Forum - AC18

More Related Content

PDF
Using Jupyter Notebooks - Developers Forum - AC18
PDF
I Didn't Know You Could Do That -Technical - AC18
PDF
What's New in the Javascript API - Developers Forum - AC18
PDF
Switching Your Teaching to ArcGIS Pro - Smart Education - Higher - AC18
PDF
Arcadis - Improving Ground Engineering Data Flows - Smart Infrastructure - AC18
PPTX
What's New in the ArcGIS Platform - Smart Education - Higher - AC18
PDF
Visual Analysis With Insights and Operations Dashboard - Analytical Insights ...
PPTX
Sweet - Esri UK
Using Jupyter Notebooks - Developers Forum - AC18
I Didn't Know You Could Do That -Technical - AC18
What's New in the Javascript API - Developers Forum - AC18
Switching Your Teaching to ArcGIS Pro - Smart Education - Higher - AC18
Arcadis - Improving Ground Engineering Data Flows - Smart Infrastructure - AC18
What's New in the ArcGIS Platform - Smart Education - Higher - AC18
Visual Analysis With Insights and Operations Dashboard - Analytical Insights ...
Sweet - Esri UK

What's hot (19)

PPTX
Enhance your maps with arcade - Esri UK
PDF
Get Further by Being Mobile – A Look at Advanced Mobile Techniques in the Arc...
PPTX
Introduction to ArcGIS Developer Tools - Smart Development - Esri UK Annual C...
PPTX
ArcGIS Developer Program - Smart Development - Esri UK Annual Conference 2017
PPTX
Advanced Development Techniques with ArcPy and Python API - Smart Development...
PDF
Esri Scotland Conf 2016 Web AppBuilder
PPTX
Whats New in Serverless - Serverless Meetup AKL
PDF
Wonders of GIS
PPTX
Presentation may30th
PPTX
AGI Presentation 2013
PPTX
Taking Advantage of ArcGIS Online to Push a Mobile Agenda
PPTX
Gis without the_box_may2012
PPTX
Arc2Earth - ESRI NYC Dev Meetup
PPTX
Taking Advantage of ArcGIS Online to Push a Mobile Agenda (Esri UC 2013 Edition)
PPTX
Getting to Know ArcGIS Pro
PPTX
Ai lifecycle and navigator
PDF
Imagery Bundles for ArcGIS
PDF
GraphQL API on a Serverless Environment
PDF
React Native+Expoで作るARアプリ
Enhance your maps with arcade - Esri UK
Get Further by Being Mobile – A Look at Advanced Mobile Techniques in the Arc...
Introduction to ArcGIS Developer Tools - Smart Development - Esri UK Annual C...
ArcGIS Developer Program - Smart Development - Esri UK Annual Conference 2017
Advanced Development Techniques with ArcPy and Python API - Smart Development...
Esri Scotland Conf 2016 Web AppBuilder
Whats New in Serverless - Serverless Meetup AKL
Wonders of GIS
Presentation may30th
AGI Presentation 2013
Taking Advantage of ArcGIS Online to Push a Mobile Agenda
Gis without the_box_may2012
Arc2Earth - ESRI NYC Dev Meetup
Taking Advantage of ArcGIS Online to Push a Mobile Agenda (Esri UC 2013 Edition)
Getting to Know ArcGIS Pro
Ai lifecycle and navigator
Imagery Bundles for ArcGIS
GraphQL API on a Serverless Environment
React Native+Expoで作るARアプリ
Ad

Similar to All About Angular and ArcGIS - Developers Forum - AC18 (20)

PPTX
SharePoint Saturday Twin Cities - SharePoint Framework, Angular & Azure Funct...
PPTX
SharePoint Saturday Vancouver - SharePoint Framework, Angular and Azure Funct...
PPTX
SharePoint Fest DC - SharePoint Framework, Angular and Azure Functions
PPTX
PPTX
Angular2.0@Shanghai0319
PPTX
Swagger - Making REST APIs friendlier
PPTX
Angular, ASP.NET Core, and Visual Studio Code - Oh My!
PDF
Building CI from scratch
PPTX
Why choose Angular 6?
PDF
Esriuk_track6_java_script unleashed
PDF
AzovDevMeetup 2016 | Angular 2: обзор | Александр Шевнин
PPTX
React or Angular and SharePoint Framework Development
PPT
Angular.ppt
PDF
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
PPTX
Angular vs React vs Vue
PPTX
Introducing ASP.NET vNext - A tour of the new ASP.NET platform
PPTX
Angular 2.0
PDF
Ionic vancouver 201604
PPTX
European Collaboration Summit - SharePoint Framework Angular & Azure Functions
PPTX
Modern Web-site Development Pipeline
SharePoint Saturday Twin Cities - SharePoint Framework, Angular & Azure Funct...
SharePoint Saturday Vancouver - SharePoint Framework, Angular and Azure Funct...
SharePoint Fest DC - SharePoint Framework, Angular and Azure Functions
Angular2.0@Shanghai0319
Swagger - Making REST APIs friendlier
Angular, ASP.NET Core, and Visual Studio Code - Oh My!
Building CI from scratch
Why choose Angular 6?
Esriuk_track6_java_script unleashed
AzovDevMeetup 2016 | Angular 2: обзор | Александр Шевнин
React or Angular and SharePoint Framework Development
Angular.ppt
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
Angular vs React vs Vue
Introducing ASP.NET vNext - A tour of the new ASP.NET platform
Angular 2.0
Ionic vancouver 201604
European Collaboration Summit - SharePoint Framework Angular & Azure Functions
Modern Web-site Development Pipeline
Ad

More from Esri UK (20)

PPTX
Delivering sustainable development projects - Welsh Conference 2024
PPTX
Enhancing biodiversity at Welsh hospitals - Welsh Conference 2024
PPTX
Mapping the past for the future - Welsh Conference 2024
PPTX
Cultivating community-driven approaches to conservation - Welsh Conference 2024
PPTX
Welsh Conference 2023 - The Road Ahead
PDF
Welsh Conference 2023 Opening Plenary
PPTX
Solving sustainability challenges with geospatial information
PPTX
Streamlining the design and operation of infrastructure in Wales
PPTX
Ecological monitoring in Wales: data capture in the ERAMMP field survey
PDF
Planning a brighter future with a GIS of the World
PDF
Help create a national walking network
PPTX
Bringing ArcGIS spatial analysis to bear on IoT data
PPTX
How climate data can help address the climate challenge
PPTX
Esri UK Road Ahead Welsh Conference
PDF
GIS Under the Radar - Smart Education - Higher - AC18
PPTX
Update on ArcGIS Online for Schools - Smart Education - Schools - AC18
PDF
Knowing Your Place - Smart Education - Schools - AC18
PDF
TACP - Cycling Jersey with ArcGIS - Analytical Insights - Esri UK Annual Conf...
PPTX
TfL - How GIS is Helping to Deliver Healthy Streets for Londoners - Enterpris...
PDF
Highways England - Improved Road Scheme Planning - Smart Infrastructure - Esr...
Delivering sustainable development projects - Welsh Conference 2024
Enhancing biodiversity at Welsh hospitals - Welsh Conference 2024
Mapping the past for the future - Welsh Conference 2024
Cultivating community-driven approaches to conservation - Welsh Conference 2024
Welsh Conference 2023 - The Road Ahead
Welsh Conference 2023 Opening Plenary
Solving sustainability challenges with geospatial information
Streamlining the design and operation of infrastructure in Wales
Ecological monitoring in Wales: data capture in the ERAMMP field survey
Planning a brighter future with a GIS of the World
Help create a national walking network
Bringing ArcGIS spatial analysis to bear on IoT data
How climate data can help address the climate challenge
Esri UK Road Ahead Welsh Conference
GIS Under the Radar - Smart Education - Higher - AC18
Update on ArcGIS Online for Schools - Smart Education - Schools - AC18
Knowing Your Place - Smart Education - Schools - AC18
TACP - Cycling Jersey with ArcGIS - Analytical Insights - Esri UK Annual Conf...
TfL - How GIS is Helping to Deliver Healthy Streets for Londoners - Enterpris...
Highways England - Improved Road Scheme Planning - Smart Infrastructure - Esr...

Recently uploaded (20)

PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
How Creative Agencies Leverage Project Management Software.pdf
PPTX
Reimagine Home Health with the Power of Agentic AI​
PDF
wealthsignaloriginal-com-DS-text-... (1).pdf
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Digital Strategies for Manufacturing Companies
PDF
Design an Analysis of Algorithms II-SECS-1021-03
PPTX
history of c programming in notes for students .pptx
PDF
medical staffing services at VALiNTRY
PPTX
Transform Your Business with a Software ERP System
PDF
top salesforce developer skills in 2025.pdf
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
How Creative Agencies Leverage Project Management Software.pdf
Reimagine Home Health with the Power of Agentic AI​
wealthsignaloriginal-com-DS-text-... (1).pdf
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
How to Migrate SBCGlobal Email to Yahoo Easily
Navsoft: AI-Powered Business Solutions & Custom Software Development
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Odoo POS Development Services by CandidRoot Solutions
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Digital Strategies for Manufacturing Companies
Design an Analysis of Algorithms II-SECS-1021-03
history of c programming in notes for students .pptx
medical staffing services at VALiNTRY
Transform Your Business with a Software ERP System
top salesforce developer skills in 2025.pdf
CHAPTER 2 - PM Management and IT Context
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Wondershare Filmora 15 Crack With Activation Key [2025

All About Angular and ArcGIS - Developers Forum - AC18

  • 1. Angular and the ArcGIS API for JavaScript Seth Batterby, Esri UK
  • 2. What am I going to cover? • Angular - What is it? - Why we use it? • Angular and the ArcGIS API for JavaScript - Using the Esri loader - Using Exclude and Require - Esri webpack plugin Esri UK Annual Conference 2018 | London
  • 3. Angular – What is it? • An open source web development framework • Its more than just a framework! - Develop across platforms - End to end tooling - Templating - Routing - Components Esri UK Annual Conference 2018 | London
  • 4. Angular – Why do we use it? • Well suited for large and complex applications • Makes it easy to implement complex requirements • Write code in TypeScript, cutting down on bugs and errors • Lots of tools to speed up development Esri UK Annual Conference 2018 | London
  • 5. Sweet AppBuilder Esri UK Annual Conference 2018 | London • Complex Angular application • We use a lot of the Angular Framework - Animations, Components, Reactive Forms, Routing, Guards, Resolvers • Use webpack for builds • ArcGIS API for JS is used throughout
  • 6. Angular and the ArcGIS API for JavaScript - The ArcGIS API for JavaScript is written in Dojo - It’s a large library of AMD modules - Most module loaders implement AMD differently than Dojo We need some workarounds to get Angular and the JS API working together. Esri UK Annual Conference 2018 | London
  • 7. esri-loader - A tiny library to help load modules - Written and maintained by Esri - Lets you control when the API is loaded - Can use with 3.x or 4.x versions of the API Esri UK Annual Conference 2018 | London
  • 8. esri-loader • Pros - Allows for lazy loading modules, when you need them - Zero configuration - Can be used with other frameworks • Cons - Have to use complicated async patterns and callbacks - Cant use import statements Esri UK Annual Conference 2018 | London
  • 9. Exclude and Require Provides a slightly higher level of abstraction There's a lot more configuration to handle 1. Configure webpack to exclude Dojo modules 2. Output bundles as AMD 3. Load ArcGIS API for JavaScript via a script tag 4. Use Dojo loader to require the bundles Esri UK Annual Conference 2018 | London
  • 10. Exclude and Require • Pros - Can use Imports for loading modules - No need to use Promises or callbacks • Cons - Can slow down application startup - Needs some configuration to get working Esri UK Annual Conference 2018 | London
  • 11. Esri webpack Plugin (New) • Pros - Same as the Exclude and Require pattern but in a handy plugin! - Much less configuration needed - Should be future proof • Cons - Only works with ArcGIS API >= v4.7 - Only works with webpack Esri UK Annual Conference 2018 | London
  • 12. Summary - Angular - Great for building complex applications - There's a steep learning curve - Wouldn’t recommend it for small applications - ArcGIS API for JS - 3 different patterns for loading - esri-loader most popular - New webpack plugin is the future! Esri UK Annual Conference 2018 | London
  • 13. Additional Resources • Tom Wayson: How to load ArcGIS API for JavaScript modules • Esri loader - Esri loader repository • Exclude and Require - Tom Wayson: Using webpack - Angular 2 with Esri API and webpack • Webpack plugin - Using the new webpack plugin for the ArcGIS API for JavaScript - Webpack-plugin repository Esri UK Annual Conference 2018 | London