SlideShare a Scribd company logo
Web Components changes Web Development


Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
var XElementPrototype = Object.create(HTMLElement.prototype);
var XElement = document.registerElement('x-element', {
prototype: XElementPrototype
});
new XElement();
var XElementPrototype = Object.create(HTMLElement.prototype);
XElementPrototype.createdCallback = function () {
console.log('created');
};
XElementPrototype.attachedCallback = function () {
console.log('attached');
};
XElementPrototype.detachedCallback = function () {
console.log('detached');
};
XElementPrototype.attributeChangedCallback = function () {
console.log('attribute changed');
};
var XElement = document.registerElement('x-element', {
prototype: XElementPrototype
});
new XElement();
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
<template id='tmpl'>
<style>
input, button {
border: 1px solid #000;
border-radius: 3px;
}
</style>
<input type='text'>
<button>Button</button>
</template>
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
var template = document.querySelector('#tmpl');
var div = document.querySelector('div');
var clone = document.importNode(template.content, true);
var shadowRoot = div.createShadowRoot();
shadowRoot.appendChild(clone);
Web Components changes Web Development
<html>
<head>
<title>x-element</title>
<link rel='import' href='x-element.html'>
</head>
<body>
<x-element></x-element>
</body>
</html>
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
var options = {
zoom: 10,
center: new google.map.LatLng(-34.397, 150.644)
};
var mapCanvas = document.getElementById('map-canvas');
var map = new google.maps.Map(mapCanvas, options);
var marker = new google.maps.Marker({
position: new google.map.LatLng(-34.397, 150.644),
map: map,
title: 'Hello World!'
});
var flightPlanCoordinates = [
new google.maps.LatLng(37.772323, -122.214897),
new google.maps.LatLng(21.291982, -157.821856),
new google.maps.LatLng(-18.142599, 178.431),
new google.maps.LatLng(-27.46758, 153.027892)
];
var flightPath = new google.maps.Polyline({
path: flightPlanCoordinates,
geodesic: true,
strokeColor: '#FF0000',
strokeOpacity: 1.0,
Web Components changes Web Development
Web Components changes Web Development
<google-map
latitude=“37.77493"
longitude=“-122.41942">
</google-map>
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
<x-notification
autoshow
title='Notification Title'
delay='1000'
timeout='3000'
tag=‘tag’>Body Text</x-notification>
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
<template>
<p>lorem ipsum</p>
</template>
<script>
var XElement = document.registerElement('x-element', {
prototype: {
createdCallback: function () {
var template = document.querySelector('template');
var clone = document.importNode(template.content, true);
var shadowRoot = element.createShadowRoot();
shadowRoot.appendChild(clone);
}
}
});
</script>
Web Components changes Web Development
<polymer-element name='x-element'>
<template>
<p>lorem ipsum</p>
</template>
</polymer-element>
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
ཀ
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development


Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development
Web Components changes Web Development

More Related Content

PDF
Introducing jQuery
PDF
Ruby - Design patterns tdc2011
PDF
Aplicacoes dinamicas Rails com Backbone
TXT
PDF
Backbone - TDC 2011 Floripa
PDF
Web2py
PPTX
03 page navigation and data binding in windows runtime apps
PDF
Flask 소수전공 강의자료 - 3차시
Introducing jQuery
Ruby - Design patterns tdc2011
Aplicacoes dinamicas Rails com Backbone
Backbone - TDC 2011 Floripa
Web2py
03 page navigation and data binding in windows runtime apps
Flask 소수전공 강의자료 - 3차시

What's hot (12)

PDF
jQuery and Rails, Sitting in a Tree
PDF
Flask 소수전공 강의자료 - 4차시
PDF
Web2py Code Lab
PDF
Iktomi forms
PPTX
Drupal sins 2016 10-06
PDF
Improving the performance of Odoo deployments
PPTX
Sins Against Drupal 2
PDF
Introduction to jQuery
PDF
Web2py tutorial to create db driven application.
KEY
Keeping It Simple
PPTX
Xml operations in odoo
PPTX
Mule esb – connecting to ms sql db
jQuery and Rails, Sitting in a Tree
Flask 소수전공 강의자료 - 4차시
Web2py Code Lab
Iktomi forms
Drupal sins 2016 10-06
Improving the performance of Odoo deployments
Sins Against Drupal 2
Introduction to jQuery
Web2py tutorial to create db driven application.
Keeping It Simple
Xml operations in odoo
Mule esb – connecting to ms sql db
Ad

Similar to Web Components changes Web Development (20)

PDF
TypeScriptで書くAngularJS @ GDG神戸2014.8.23
PPTX
Unit – II (1).pptx
PDF
Human Talks - StencilJS
PDF
04 Advanced Javascript
PDF
jQuery secrets
PPTX
course js day 3
KEY
JavaScript Testing for Rubyists
PDF
The Xtext Grammar Language
PPTX
Javascript 2
KEY
Testing Your Sproutcore Presentation
PPTX
JavaScript-L20.pptx
PDF
Clean Javascript
PPTX
Web technology javascript
PDF
Javascript 攻佔桌面應用程式:使用 electron
PDF
Object-oriented Javascript
PDF
HTML5 APIs - Where no man has gone before! - Altran
PDF
Creating an Uber Clone - Part XXXX.pdf
PDF
Stay with React.js in 2020
TypeScriptで書くAngularJS @ GDG神戸2014.8.23
Unit – II (1).pptx
Human Talks - StencilJS
04 Advanced Javascript
jQuery secrets
course js day 3
JavaScript Testing for Rubyists
The Xtext Grammar Language
Javascript 2
Testing Your Sproutcore Presentation
JavaScript-L20.pptx
Clean Javascript
Web technology javascript
Javascript 攻佔桌面應用程式:使用 electron
Object-oriented Javascript
HTML5 APIs - Where no man has gone before! - Altran
Creating an Uber Clone - Part XXXX.pdf
Stay with React.js in 2020
Ad

More from Shogo Sensui (17)

PDF
Web Standards Interop 2022
PDF
Introduction to Performance APIs
PDF
Web Standards 2018
PDF
The State of Web Components
PDF
Component of Web Frontend
PDF
Web フロントエンドの変遷とこれから
PDF
Introduction to Resource Hints
PDF
Web Components 2016 & Polymer v2
PDF
これからのJavaScriptの話
PDF
初心者のためのWeb標準技術
PDF
Introduction to Service Worker
PDF
We should optimize images
PDF
Re-think about Web Performance
PDF
Browser Computing Structure
PDF
Brush up your Coding! 2013 winter
PDF
Brush up your Coding!
PDF
Functional JavaScript with Lo-Dash.js
Web Standards Interop 2022
Introduction to Performance APIs
Web Standards 2018
The State of Web Components
Component of Web Frontend
Web フロントエンドの変遷とこれから
Introduction to Resource Hints
Web Components 2016 & Polymer v2
これからのJavaScriptの話
初心者のためのWeb標準技術
Introduction to Service Worker
We should optimize images
Re-think about Web Performance
Browser Computing Structure
Brush up your Coding! 2013 winter
Brush up your Coding!
Functional JavaScript with Lo-Dash.js

Recently uploaded (20)

PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Big Data Technologies - Introduction.pptx
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Chapter 3 Spatial Domain Image Processing.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PPTX
Spectroscopy.pptx food analysis technology
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Empathic Computing: Creating Shared Understanding
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
Teaching material agriculture food technology
PDF
Encapsulation theory and applications.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Big Data Technologies - Introduction.pptx
Network Security Unit 5.pdf for BCA BBA.
Dropbox Q2 2025 Financial Results & Investor Presentation
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Programs and apps: productivity, graphics, security and other tools
MYSQL Presentation for SQL database connectivity
Chapter 3 Spatial Domain Image Processing.pdf
The AUB Centre for AI in Media Proposal.docx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Spectroscopy.pptx food analysis technology
Mobile App Security Testing_ A Comprehensive Guide.pdf
Empathic Computing: Creating Shared Understanding
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Teaching material agriculture food technology
Encapsulation theory and applications.pdf
MIND Revenue Release Quarter 2 2025 Press Release
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx

Web Components changes Web Development