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

What's hot

Enhance your maps with arcade - Esri UK
Enhance your maps with arcade - Esri UKEnhance your maps with arcade - Esri UK
Enhance your maps with arcade - Esri UK
Esri UK
 
Get Further by Being Mobile – A Look at Advanced Mobile Techniques in the Arc...
Get Further by Being Mobile – A Look at Advanced Mobile Techniques in the Arc...Get Further by Being Mobile – A Look at Advanced Mobile Techniques in the Arc...
Get Further by Being Mobile – A Look at Advanced Mobile Techniques in the Arc...
Esri UK
 
Introduction to ArcGIS Developer Tools - Smart Development - Esri UK Annual C...
Introduction to ArcGIS Developer Tools - Smart Development - Esri UK Annual C...Introduction to ArcGIS Developer Tools - Smart Development - Esri UK Annual C...
Introduction to ArcGIS Developer Tools - Smart Development - Esri UK Annual C...
Esri UK
 
ArcGIS Developer Program - Smart Development - Esri UK Annual Conference 2017
ArcGIS Developer Program - Smart Development - Esri UK Annual Conference 2017ArcGIS Developer Program - Smart Development - Esri UK Annual Conference 2017
ArcGIS Developer Program - Smart Development - Esri UK Annual Conference 2017
Esri UK
 
Advanced Development Techniques with ArcPy and Python API - Smart Development...
Advanced Development Techniques with ArcPy and Python API - Smart Development...Advanced Development Techniques with ArcPy and Python API - Smart Development...
Advanced Development Techniques with ArcPy and Python API - Smart Development...
Esri UK
 
Esri Scotland Conf 2016 Web AppBuilder
Esri Scotland Conf 2016   Web AppBuilderEsri Scotland Conf 2016   Web AppBuilder
Esri Scotland Conf 2016 Web AppBuilder
Esri UK
 
Whats New in Serverless - Serverless Meetup AKL
Whats New in Serverless - Serverless Meetup AKLWhats New in Serverless - Serverless Meetup AKL
Whats New in Serverless - Serverless Meetup AKL
Elijah Astley
 
Wonders of GIS
Wonders of GISWonders of GIS
Wonders of GIS
Yiman Song
 
AGI Presentation 2013
AGI Presentation 2013AGI Presentation 2013
AGI Presentation 2013
Simon Miles
 
Taking Advantage of ArcGIS Online to Push a Mobile Agenda
Taking Advantage of ArcGIS Online to Push a Mobile AgendaTaking Advantage of ArcGIS Online to Push a Mobile Agenda
Taking Advantage of ArcGIS Online to Push a Mobile Agenda
Michael Olkin
 
Arc2Earth - ESRI NYC Dev Meetup
Arc2Earth - ESRI NYC Dev MeetupArc2Earth - ESRI NYC Dev Meetup
Arc2Earth - ESRI NYC Dev MeetupArc2Earth
 
Taking Advantage of ArcGIS Online to Push a Mobile Agenda (Esri UC 2013 Edition)
Taking Advantage of ArcGIS Online to Push a Mobile Agenda (Esri UC 2013 Edition)Taking Advantage of ArcGIS Online to Push a Mobile Agenda (Esri UC 2013 Edition)
Taking Advantage of ArcGIS Online to Push a Mobile Agenda (Esri UC 2013 Edition)
Michael Olkin
 
Getting to Know ArcGIS Pro
Getting to Know ArcGIS ProGetting to Know ArcGIS Pro
Getting to Know ArcGIS Pro
Esri UK
 
Ai lifecycle and navigator
Ai lifecycle and navigatorAi lifecycle and navigator
Ai lifecycle and navigator
aiclub_slides
 
Imagery Bundles for ArcGIS
 Imagery Bundles for ArcGIS Imagery Bundles for ArcGIS
Imagery Bundles for ArcGIS
Steve Snow
 
GraphQL API on a Serverless Environment
GraphQL API on a Serverless EnvironmentGraphQL API on a Serverless Environment
GraphQL API on a Serverless Environment
Itai Yaffe
 
React Native+Expoで作るARアプリ
React Native+Expoで作るARアプリReact Native+Expoで作るARアプリ
React Native+Expoで作るARアプリ
中本 聖也
 

What's hot (19)

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

Similar to All About Angular and ArcGIS - Developers Forum - AC18

SharePoint Saturday Twin Cities - SharePoint Framework, Angular & Azure Funct...
SharePoint Saturday Twin Cities - SharePoint Framework, Angular & Azure Funct...SharePoint Saturday Twin Cities - SharePoint Framework, Angular & Azure Funct...
SharePoint Saturday Twin Cities - SharePoint Framework, Angular & Azure Funct...
Sébastien Levert
 
SharePoint Saturday Vancouver - SharePoint Framework, Angular and Azure Funct...
SharePoint Saturday Vancouver - SharePoint Framework, Angular and Azure Funct...SharePoint Saturday Vancouver - SharePoint Framework, Angular and Azure Funct...
SharePoint Saturday Vancouver - SharePoint Framework, Angular and Azure Funct...
Sébastien Levert
 
SharePoint Fest DC - SharePoint Framework, Angular and Azure Functions
SharePoint Fest DC - SharePoint Framework, Angular and Azure FunctionsSharePoint Fest DC - SharePoint Framework, Angular and Azure Functions
SharePoint Fest DC - SharePoint Framework, Angular and Azure Functions
Sébastien Levert
 
Angular 2
Angular 2Angular 2
Angular2.0@Shanghai0319
Angular2.0@Shanghai0319Angular2.0@Shanghai0319
Angular2.0@Shanghai0319
Bibby Chung
 
Swagger - Making REST APIs friendlier
Swagger - Making REST APIs friendlierSwagger - Making REST APIs friendlier
Swagger - Making REST APIs friendlier
Miroslav Resetar
 
Angular, ASP.NET Core, and Visual Studio Code - Oh My!
Angular, ASP.NET Core, and Visual Studio Code - Oh My!Angular, ASP.NET Core, and Visual Studio Code - Oh My!
Angular, ASP.NET Core, and Visual Studio Code - Oh My!
Aaron Marisi
 
Building CI from scratch
Building CI from scratchBuilding CI from scratch
Building CI from scratch
Artem Nikitin
 
Why choose Angular 6?
Why choose Angular 6?Why choose Angular 6?
Why choose Angular 6?
Priyanka Verma
 
Esriuk_track6_java_script unleashed
Esriuk_track6_java_script unleashedEsriuk_track6_java_script unleashed
Esriuk_track6_java_script unleashed
Esri UK
 
AzovDevMeetup 2016 | Angular 2: обзор | Александр Шевнин
AzovDevMeetup 2016 | Angular 2: обзор | Александр ШевнинAzovDevMeetup 2016 | Angular 2: обзор | Александр Шевнин
AzovDevMeetup 2016 | Angular 2: обзор | Александр Шевнин
JSC “Arcadia Inc”
 
React or Angular and SharePoint Framework Development
React or Angular and SharePoint Framework DevelopmentReact or Angular and SharePoint Framework Development
React or Angular and SharePoint Framework Development
Darin Dickey
 
Angular.ppt
Angular.pptAngular.ppt
Angular.ppt
Mytrux1
 
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]26 top angular 8 interview questions to know in 2020   [www.full stack.cafe]
26 top angular 8 interview questions to know in 2020 [www.full stack.cafe]
Alex Ershov
 
Angular vs React vs Vue
Angular vs React vs VueAngular vs React vs Vue
Angular vs React vs Vue
Hosein Mansouri
 
Introducing ASP.NET vNext - A tour of the new ASP.NET platform
Introducing ASP.NET vNext - A tour of the new ASP.NET platformIntroducing ASP.NET vNext - A tour of the new ASP.NET platform
Introducing ASP.NET vNext - A tour of the new ASP.NET platform
Jeffrey T. Fritz
 
Angular 2.0
Angular  2.0Angular  2.0
Angular 2.0
Mallikarjuna G D
 
Ionic vancouver 201604
Ionic vancouver 201604Ionic vancouver 201604
Ionic vancouver 201604
Alamusi Alamusi
 
European Collaboration Summit - SharePoint Framework Angular & Azure Functions
European Collaboration Summit - SharePoint Framework Angular & Azure FunctionsEuropean Collaboration Summit - SharePoint Framework Angular & Azure Functions
European Collaboration Summit - SharePoint Framework Angular & Azure Functions
Sébastien Levert
 
Modern Web-site Development Pipeline
Modern Web-site Development PipelineModern Web-site Development Pipeline
Modern Web-site Development Pipeline
GlobalLogic Ukraine
 

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

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

More from Esri UK

Welsh Conference 2023 - The Road Ahead
Welsh Conference 2023 - The Road AheadWelsh Conference 2023 - The Road Ahead
Welsh Conference 2023 - The Road Ahead
Esri UK
 
Welsh Conference 2023 Opening Plenary
Welsh Conference 2023 Opening PlenaryWelsh Conference 2023 Opening Plenary
Welsh Conference 2023 Opening Plenary
Esri UK
 
Solving sustainability challenges with geospatial information
Solving sustainability challenges with geospatial informationSolving sustainability challenges with geospatial information
Solving sustainability challenges with geospatial information
Esri UK
 
Streamlining the design and operation of infrastructure in Wales
Streamlining the design and operation of infrastructure in WalesStreamlining the design and operation of infrastructure in Wales
Streamlining the design and operation of infrastructure in Wales
Esri UK
 
Ecological monitoring in Wales: data capture in the ERAMMP field survey
Ecological monitoring in Wales: data capture in the ERAMMP field surveyEcological monitoring in Wales: data capture in the ERAMMP field survey
Ecological monitoring in Wales: data capture in the ERAMMP field survey
Esri UK
 
Planning a brighter future with a GIS of the World
Planning a brighter future with a GIS of the WorldPlanning a brighter future with a GIS of the World
Planning a brighter future with a GIS of the World
Esri UK
 
Help create a national walking network
Help create a national walking networkHelp create a national walking network
Help create a national walking network
Esri UK
 
Bringing ArcGIS spatial analysis to bear on IoT data
Bringing ArcGIS spatial analysis to bear on IoT dataBringing ArcGIS spatial analysis to bear on IoT data
Bringing ArcGIS spatial analysis to bear on IoT data
Esri UK
 
How climate data can help address the climate challenge
How climate data can help address the climate challengeHow climate data can help address the climate challenge
How climate data can help address the climate challenge
Esri UK
 
Esri UK Road Ahead Welsh Conference
Esri UK Road Ahead Welsh ConferenceEsri UK Road Ahead Welsh Conference
Esri UK Road Ahead Welsh Conference
Esri UK
 
GIS Under the Radar - Smart Education - Higher - AC18
GIS Under the Radar - Smart Education - Higher - AC18GIS Under the Radar - Smart Education - Higher - AC18
GIS Under the Radar - Smart Education - Higher - AC18
Esri UK
 
Update on ArcGIS Online for Schools - Smart Education - Schools - AC18
Update on ArcGIS Online for Schools - Smart Education - Schools - AC18Update on ArcGIS Online for Schools - Smart Education - Schools - AC18
Update on ArcGIS Online for Schools - Smart Education - Schools - AC18
Esri UK
 
Knowing Your Place - Smart Education - Schools - AC18
Knowing Your Place - Smart Education - Schools - AC18Knowing Your Place - Smart Education - Schools - AC18
Knowing Your Place - Smart Education - Schools - AC18
Esri UK
 
TACP - Cycling Jersey with ArcGIS - Analytical Insights - Esri UK Annual Conf...
TACP - Cycling Jersey with ArcGIS - Analytical Insights - Esri UK Annual Conf...TACP - Cycling Jersey with ArcGIS - Analytical Insights - Esri UK Annual Conf...
TACP - Cycling Jersey with ArcGIS - Analytical Insights - Esri UK Annual Conf...
Esri UK
 
TfL - How GIS is Helping to Deliver Healthy Streets for Londoners - Enterpris...
TfL - How GIS is Helping to Deliver Healthy Streets for Londoners - Enterpris...TfL - How GIS is Helping to Deliver Healthy Streets for Londoners - Enterpris...
TfL - How GIS is Helping to Deliver Healthy Streets for Londoners - Enterpris...
Esri UK
 
Highways England - Improved Road Scheme Planning - Smart Infrastructure - Esr...
Highways England - Improved Road Scheme Planning - Smart Infrastructure - Esr...Highways England - Improved Road Scheme Planning - Smart Infrastructure - Esr...
Highways England - Improved Road Scheme Planning - Smart Infrastructure - Esr...
Esri UK
 
Mott MacDonald - BIM and the Environment - Smart Infrastructure - Esri UK Ann...
Mott MacDonald - BIM and the Environment - Smart Infrastructure - Esri UK Ann...Mott MacDonald - BIM and the Environment - Smart Infrastructure - Esri UK Ann...
Mott MacDonald - BIM and the Environment - Smart Infrastructure - Esri UK Ann...
Esri UK
 
GWP - Flood Hazard Mapping for Small Island Developing States using GIS and L...
GWP - Flood Hazard Mapping for Small Island Developing States using GIS and L...GWP - Flood Hazard Mapping for Small Island Developing States using GIS and L...
GWP - Flood Hazard Mapping for Small Island Developing States using GIS and L...
Esri UK
 
ONS - Leaving No-one Behind - Data in Action - Esri UK Annual Conference 2018
ONS - Leaving No-one Behind - Data in Action - Esri UK Annual Conference 2018ONS - Leaving No-one Behind - Data in Action - Esri UK Annual Conference 2018
ONS - Leaving No-one Behind - Data in Action - Esri UK Annual Conference 2018
Esri UK
 
The Environment Agency - Improving Incident Response - Collaborative Working ...
The Environment Agency - Improving Incident Response - Collaborative Working ...The Environment Agency - Improving Incident Response - Collaborative Working ...
The Environment Agency - Improving Incident Response - Collaborative Working ...
Esri UK
 

More from Esri UK (20)

Welsh Conference 2023 - The Road Ahead
Welsh Conference 2023 - The Road AheadWelsh Conference 2023 - The Road Ahead
Welsh Conference 2023 - The Road Ahead
 
Welsh Conference 2023 Opening Plenary
Welsh Conference 2023 Opening PlenaryWelsh Conference 2023 Opening Plenary
Welsh Conference 2023 Opening Plenary
 
Solving sustainability challenges with geospatial information
Solving sustainability challenges with geospatial informationSolving sustainability challenges with geospatial information
Solving sustainability challenges with geospatial information
 
Streamlining the design and operation of infrastructure in Wales
Streamlining the design and operation of infrastructure in WalesStreamlining the design and operation of infrastructure in Wales
Streamlining the design and operation of infrastructure in Wales
 
Ecological monitoring in Wales: data capture in the ERAMMP field survey
Ecological monitoring in Wales: data capture in the ERAMMP field surveyEcological monitoring in Wales: data capture in the ERAMMP field survey
Ecological monitoring in Wales: data capture in the ERAMMP field survey
 
Planning a brighter future with a GIS of the World
Planning a brighter future with a GIS of the WorldPlanning a brighter future with a GIS of the World
Planning a brighter future with a GIS of the World
 
Help create a national walking network
Help create a national walking networkHelp create a national walking network
Help create a national walking network
 
Bringing ArcGIS spatial analysis to bear on IoT data
Bringing ArcGIS spatial analysis to bear on IoT dataBringing ArcGIS spatial analysis to bear on IoT data
Bringing ArcGIS spatial analysis to bear on IoT data
 
How climate data can help address the climate challenge
How climate data can help address the climate challengeHow climate data can help address the climate challenge
How climate data can help address the climate challenge
 
Esri UK Road Ahead Welsh Conference
Esri UK Road Ahead Welsh ConferenceEsri UK Road Ahead Welsh Conference
Esri UK Road Ahead Welsh Conference
 
GIS Under the Radar - Smart Education - Higher - AC18
GIS Under the Radar - Smart Education - Higher - AC18GIS Under the Radar - Smart Education - Higher - AC18
GIS Under the Radar - Smart Education - Higher - AC18
 
Update on ArcGIS Online for Schools - Smart Education - Schools - AC18
Update on ArcGIS Online for Schools - Smart Education - Schools - AC18Update on ArcGIS Online for Schools - Smart Education - Schools - AC18
Update on ArcGIS Online for Schools - Smart Education - Schools - AC18
 
Knowing Your Place - Smart Education - Schools - AC18
Knowing Your Place - Smart Education - Schools - AC18Knowing Your Place - Smart Education - Schools - AC18
Knowing Your Place - Smart Education - Schools - AC18
 
TACP - Cycling Jersey with ArcGIS - Analytical Insights - Esri UK Annual Conf...
TACP - Cycling Jersey with ArcGIS - Analytical Insights - Esri UK Annual Conf...TACP - Cycling Jersey with ArcGIS - Analytical Insights - Esri UK Annual Conf...
TACP - Cycling Jersey with ArcGIS - Analytical Insights - Esri UK Annual Conf...
 
TfL - How GIS is Helping to Deliver Healthy Streets for Londoners - Enterpris...
TfL - How GIS is Helping to Deliver Healthy Streets for Londoners - Enterpris...TfL - How GIS is Helping to Deliver Healthy Streets for Londoners - Enterpris...
TfL - How GIS is Helping to Deliver Healthy Streets for Londoners - Enterpris...
 
Highways England - Improved Road Scheme Planning - Smart Infrastructure - Esr...
Highways England - Improved Road Scheme Planning - Smart Infrastructure - Esr...Highways England - Improved Road Scheme Planning - Smart Infrastructure - Esr...
Highways England - Improved Road Scheme Planning - Smart Infrastructure - Esr...
 
Mott MacDonald - BIM and the Environment - Smart Infrastructure - Esri UK Ann...
Mott MacDonald - BIM and the Environment - Smart Infrastructure - Esri UK Ann...Mott MacDonald - BIM and the Environment - Smart Infrastructure - Esri UK Ann...
Mott MacDonald - BIM and the Environment - Smart Infrastructure - Esri UK Ann...
 
GWP - Flood Hazard Mapping for Small Island Developing States using GIS and L...
GWP - Flood Hazard Mapping for Small Island Developing States using GIS and L...GWP - Flood Hazard Mapping for Small Island Developing States using GIS and L...
GWP - Flood Hazard Mapping for Small Island Developing States using GIS and L...
 
ONS - Leaving No-one Behind - Data in Action - Esri UK Annual Conference 2018
ONS - Leaving No-one Behind - Data in Action - Esri UK Annual Conference 2018ONS - Leaving No-one Behind - Data in Action - Esri UK Annual Conference 2018
ONS - Leaving No-one Behind - Data in Action - Esri UK Annual Conference 2018
 
The Environment Agency - Improving Incident Response - Collaborative Working ...
The Environment Agency - Improving Incident Response - Collaborative Working ...The Environment Agency - Improving Incident Response - Collaborative Working ...
The Environment Agency - Improving Incident Response - Collaborative Working ...
 

Recently uploaded

Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
Tendenci - The Open Source AMS (Association Management Software)
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
Matt Welsh
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
Ortus Solutions, Corp
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
Paco van Beckhoven
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
Adele Miller
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
Globus
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
IES VE
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
Globus
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
AMB-Review
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
Juraj Vysvader
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Globus
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Natan Silnitsky
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Anthony Dahanne
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
takuyayamamoto1800
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Globus
 

Recently uploaded (20)

Corporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMSCorporate Management | Session 3 of 3 | Tendenci AMS
Corporate Management | Session 3 of 3 | Tendenci AMS
 
Large Language Models and the End of Programming
Large Language Models and the End of ProgrammingLarge Language Models and the End of Programming
Large Language Models and the End of Programming
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
Into the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdfInto the Box 2024 - Keynote Day 2 Slides.pdf
Into the Box 2024 - Keynote Day 2 Slides.pdf
 
Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024Cracking the code review at SpringIO 2024
Cracking the code review at SpringIO 2024
 
May Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdfMay Marketo Masterclass, London MUG May 22 2024.pdf
May Marketo Masterclass, London MUG May 22 2024.pdf
 
SOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBrokerSOCRadar Research Team: Latest Activities of IntelBroker
SOCRadar Research Team: Latest Activities of IntelBroker
 
First Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User EndpointsFirst Steps with Globus Compute Multi-User Endpoints
First Steps with Globus Compute Multi-User Endpoints
 
Using IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New ZealandUsing IESVE for Room Loads Analysis - Australia & New Zealand
Using IESVE for Room Loads Analysis - Australia & New Zealand
 
GlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote sessionGlobusWorld 2024 Opening Keynote session
GlobusWorld 2024 Opening Keynote session
 
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdfDominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
Dominate Social Media with TubeTrivia AI’s Addictive Quiz Videos.pdf
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
In 2015, I used to write extensions for Joomla, WordPress, phpBB3, etc and I ...
 
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data AnalysisProviding Globus Services to Users of JASMIN for Environmental Data Analysis
Providing Globus Services to Users of JASMIN for Environmental Data Analysis
 
Vitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume MontevideoVitthal Shirke Microservices Resume Montevideo
Vitthal Shirke Microservices Resume Montevideo
 
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.ILBeyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
Beyond Event Sourcing - Embracing CRUD for Wix Platform - Java.IL
 
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
Paketo Buildpacks : la meilleure façon de construire des images OCI? DevopsDa...
 
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoamOpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
OpenFOAM solver for Helmholtz equation, helmholtzFoam / helmholtzBubbleFoam
 
Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...Developing Distributed High-performance Computing Capabilities of an Open Sci...
Developing Distributed High-performance Computing Capabilities of an Open Sci...
 

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