Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Google I/O extended 2019 Fellyph Cintra
1. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
Is 2019 the year of Web
Components?
Fellyph Cintra
Solutions Engineer
Deloitte Digital
1
3. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
Web Components
3
4. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
Web Components
It is a set of four specs from HTML5 and JavaScript.
Web components creates custom and reusable
elements natively
4Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
5. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
Fantastic 4
5
Custom
Elements
Shadow
DOM
ES modules
HTML
Templates
6. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
● The specification allows us to create new types of
DOM elements, where we have two types:
○ Autonomous elements where the entire definition
created by the developer
○ Customised element when the new element
extends from a Default HTML element
6
Custom
Elements
7. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
Autonomous element
7
<ph-button></ph-button>
8. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
Customised element
8
<button is=“ph-custom-button“>Click Me :)</button>
9. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
● Independent DOM tree that provides
encapsulation.
● Keeps the markup in a different layer, to keep the
code clean.
● Needs extra attention with cross-functionality
Light DOM X Shadow DOM
9
Shadow
DOM
10. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
Shadow DOM Example
10
11. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
● The ES Module specification defines the inclusion
and reuse of JS documents in other JS documents.
● ES Modules enable web components to be
developed in a modular way.
11
ES modules
12. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
● Permits to create reusable HTML template without
rendering them.
● Images won't load until we attach the template on
the DOM.
12
HTML
Templates
13. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
Is 2019 the year of Web
Components?
13
15. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin 15
Google I/O 2012 - The Web Platform’s Cutting Edge
JS.LA 2014 - Zeno Rocha: A future called
Web Components
Google I/O 2014 - Polymer and Web Components
change everything you know about Web development
Google I/O 2016 - Pratical lessons from a year
of building Web Components
Google I/O 2108 - Polymer 3.0 and beyond
16. Share your moments! #io19extended | @gdgdublin | @gdgclouddublin
Support
16
end of
2018