Suche senden
Hochladen
Polymer - Una bella historia de amor
•
0 gefällt mir
•
236 views
Israel Blancas
Folgen
Charla para el DevFest de Córdoba 2016 sobre Polymer
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 55
Jetzt herunterladen
Downloaden Sie, um offline zu lesen
Empfohlen
De 0 a Polymer
De 0 a Polymer
Israel Blancas
Polymer - El fin a tus problemas con el FrontEnd
Polymer - El fin a tus problemas con el FrontEnd
Israel Blancas
Building a Secure App with Google Polymer and Java / Spring
Building a Secure App with Google Polymer and Java / Spring
sdeeg
Polymer and web component
Polymer and web component
Imam Raza
Frontend Crash Coarse 09/28
Frontend Crash Coarse 09/28
Ivy Rueb
Polymer - Welcome to the Future @ PyGrunn 08/07/2014
Polymer - Welcome to the Future @ PyGrunn 08/07/2014
Spyros Ioakeimidis
Polymer
Polymer
jskvara
How to build a web application with Polymer
How to build a web application with Polymer
Sami Suo-Heikki
Empfohlen
De 0 a Polymer
De 0 a Polymer
Israel Blancas
Polymer - El fin a tus problemas con el FrontEnd
Polymer - El fin a tus problemas con el FrontEnd
Israel Blancas
Building a Secure App with Google Polymer and Java / Spring
Building a Secure App with Google Polymer and Java / Spring
sdeeg
Polymer and web component
Polymer and web component
Imam Raza
Frontend Crash Coarse 09/28
Frontend Crash Coarse 09/28
Ivy Rueb
Polymer - Welcome to the Future @ PyGrunn 08/07/2014
Polymer - Welcome to the Future @ PyGrunn 08/07/2014
Spyros Ioakeimidis
Polymer
Polymer
jskvara
How to build a web application with Polymer
How to build a web application with Polymer
Sami Suo-Heikki
HTML5 Overview
HTML5 Overview
reybango
Html5 Overview
Html5 Overview
Owen Williams
Frontend Crash Course
Frontend Crash Course
Aaron Lamphere
Web Components
Web Components
FITC
Enhance your WordPress development with Twig through Clarkson - WordCamp Barc...
Enhance your WordPress development with Twig through Clarkson - WordCamp Barc...
Jaime Martínez
Google Polymer Introduction
Google Polymer Introduction
David Price
Polymer presentation in Google HQ
Polymer presentation in Google HQ
Harshit Pandey
Razor into the Razor'verse
Razor into the Razor'verse
Ed Charbeneau
Introduction to Web Components
Introduction to Web Components
Fu Cheng
HTML5: An Overview
HTML5: An Overview
Nagendra Um
Codemotion Rome 2016 - Polymer
Codemotion Rome 2016 - Polymer
Maurizio Mangione
Google’s PRPL Web development pattern
Google’s PRPL Web development pattern
Jeongkyu Shin
Polymer vs other libraries (Devfest Ukraine 2015)
Polymer vs other libraries (Devfest Ukraine 2015)
jskvara
Quanto è sicuro il tuo wordpress?
Quanto è sicuro il tuo wordpress?
GGDBologna
Goodbye JavaScript Hello Blazor
Goodbye JavaScript Hello Blazor
Ed Charbeneau
INTERNSHIP BASED ON PHP-MY SQL-WORDPRESS-CODE IGNITOR-ANDROID-IOS DEV.-JAVA (...
INTERNSHIP BASED ON PHP-MY SQL-WORDPRESS-CODE IGNITOR-ANDROID-IOS DEV.-JAVA (...
DOCC Group
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...
Mahbubur Rahman
Web Components
Web Components
FITC
HTML5 for Rich User Experience
HTML5 for Rich User Experience
Mahbubur Rahman
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-13-66
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-13-66
Ivy Rueb
Polymer science: preparation and uses of polymers
Polymer science: preparation and uses of polymers
VARSHAAWASAR
Polymer ppt
Polymer ppt
Malaviya National Institute Of Technology Jaipur
Weitere ähnliche Inhalte
Was ist angesagt?
HTML5 Overview
HTML5 Overview
reybango
Html5 Overview
Html5 Overview
Owen Williams
Frontend Crash Course
Frontend Crash Course
Aaron Lamphere
Web Components
Web Components
FITC
Enhance your WordPress development with Twig through Clarkson - WordCamp Barc...
Enhance your WordPress development with Twig through Clarkson - WordCamp Barc...
Jaime Martínez
Google Polymer Introduction
Google Polymer Introduction
David Price
Polymer presentation in Google HQ
Polymer presentation in Google HQ
Harshit Pandey
Razor into the Razor'verse
Razor into the Razor'verse
Ed Charbeneau
Introduction to Web Components
Introduction to Web Components
Fu Cheng
HTML5: An Overview
HTML5: An Overview
Nagendra Um
Codemotion Rome 2016 - Polymer
Codemotion Rome 2016 - Polymer
Maurizio Mangione
Google’s PRPL Web development pattern
Google’s PRPL Web development pattern
Jeongkyu Shin
Polymer vs other libraries (Devfest Ukraine 2015)
Polymer vs other libraries (Devfest Ukraine 2015)
jskvara
Quanto è sicuro il tuo wordpress?
Quanto è sicuro il tuo wordpress?
GGDBologna
Goodbye JavaScript Hello Blazor
Goodbye JavaScript Hello Blazor
Ed Charbeneau
INTERNSHIP BASED ON PHP-MY SQL-WORDPRESS-CODE IGNITOR-ANDROID-IOS DEV.-JAVA (...
INTERNSHIP BASED ON PHP-MY SQL-WORDPRESS-CODE IGNITOR-ANDROID-IOS DEV.-JAVA (...
DOCC Group
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...
Mahbubur Rahman
Web Components
Web Components
FITC
HTML5 for Rich User Experience
HTML5 for Rich User Experience
Mahbubur Rahman
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-13-66
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-13-66
Ivy Rueb
Was ist angesagt?
(20)
HTML5 Overview
HTML5 Overview
Html5 Overview
Html5 Overview
Frontend Crash Course
Frontend Crash Course
Web Components
Web Components
Enhance your WordPress development with Twig through Clarkson - WordCamp Barc...
Enhance your WordPress development with Twig through Clarkson - WordCamp Barc...
Google Polymer Introduction
Google Polymer Introduction
Polymer presentation in Google HQ
Polymer presentation in Google HQ
Razor into the Razor'verse
Razor into the Razor'verse
Introduction to Web Components
Introduction to Web Components
HTML5: An Overview
HTML5: An Overview
Codemotion Rome 2016 - Polymer
Codemotion Rome 2016 - Polymer
Google’s PRPL Web development pattern
Google’s PRPL Web development pattern
Polymer vs other libraries (Devfest Ukraine 2015)
Polymer vs other libraries (Devfest Ukraine 2015)
Quanto è sicuro il tuo wordpress?
Quanto è sicuro il tuo wordpress?
Goodbye JavaScript Hello Blazor
Goodbye JavaScript Hello Blazor
INTERNSHIP BASED ON PHP-MY SQL-WORDPRESS-CODE IGNITOR-ANDROID-IOS DEV.-JAVA (...
INTERNSHIP BASED ON PHP-MY SQL-WORDPRESS-CODE IGNITOR-ANDROID-IOS DEV.-JAVA (...
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...
Taking Advantage of Client Side / JavsScript Templates in Rich Internet Appli...
Web Components
Web Components
HTML5 for Rich User Experience
HTML5 for Rich User Experience
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-13-66
Deck 8983a1d9-68df-4447-8481-3b4fd0de734c-13-66
Andere mochten auch
Polymer science: preparation and uses of polymers
Polymer science: preparation and uses of polymers
VARSHAAWASAR
Polymer ppt
Polymer ppt
Malaviya National Institute Of Technology Jaipur
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
GreeceJS
Google Polymer Framework
Google Polymer Framework
Kostas Karolemeas
Polymers
Polymers
sportymaaz
Polymers and their properties
Polymers and their properties
ripestone_ho
Identifying Your Skills Sets
Identifying Your Skills Sets
Scott Garrett
Los Colores en español
Los Colores en español
Brenda Eubanks
The British and Spanish law about bulliying 2017
The British and Spanish law about bulliying 2017
actgorofe
Presentaciones open-office-impress
Presentaciones open-office-impress
Emilio Bernal
2014 Resume
2014 Resume
Terri Eddy
Food chains
Food chains
jabernethy
Food chain story
Food chain story
jabernethy
My food chain story
My food chain story
jabernethy
Polymer Chemistry
Polymer Chemistry
Md. Azizul Haque Juel
Polymer Elements: Tudo que você precisa saber para criar a web
Polymer Elements: Tudo que você precisa saber para criar a web
Beto Muniz
Polymer and Firebase: Componentizing the Web in Realtime
Polymer and Firebase: Componentizing the Web in Realtime
Juarez Filho
Material design
Material design
David Tiago Conceição
O futuro do Android
O futuro do Android
Erisvaldo Junior
Tech talk polymer
Tech talk polymer
Yanuar W
Andere mochten auch
(20)
Polymer science: preparation and uses of polymers
Polymer science: preparation and uses of polymers
Polymer ppt
Polymer ppt
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
The rise of Polymer and Web Components (Kostas Karolemeas) - GreeceJS #17
Google Polymer Framework
Google Polymer Framework
Polymers
Polymers
Polymers and their properties
Polymers and their properties
Identifying Your Skills Sets
Identifying Your Skills Sets
Los Colores en español
Los Colores en español
The British and Spanish law about bulliying 2017
The British and Spanish law about bulliying 2017
Presentaciones open-office-impress
Presentaciones open-office-impress
2014 Resume
2014 Resume
Food chains
Food chains
Food chain story
Food chain story
My food chain story
My food chain story
Polymer Chemistry
Polymer Chemistry
Polymer Elements: Tudo que você precisa saber para criar a web
Polymer Elements: Tudo que você precisa saber para criar a web
Polymer and Firebase: Componentizing the Web in Realtime
Polymer and Firebase: Componentizing the Web in Realtime
Material design
Material design
O futuro do Android
O futuro do Android
Tech talk polymer
Tech talk polymer
Ähnlich wie Polymer - Una bella historia de amor
Polytechnic 1.0 Granada
Polytechnic 1.0 Granada
Israel Blancas
Polymer - Lego for the web!
Polymer - Lego for the web!
Codemotion
Introduction to web components
Introduction to web components
Marc Bächinger
Polymer-Powered Design Systems - DevFest Florida
Polymer-Powered Design Systems - DevFest Florida
John Riviello
Web Components: back to the future
Web Components: back to the future
DA-14
Polymer
Polymer
LearningTech
The Structure of Web Code: A Case For Polymer, November 1, 2014
The Structure of Web Code: A Case For Polymer, November 1, 2014
Tommie Gannert
Polymer Code Lab in Dart - DevFest Kraków 2014
Polymer Code Lab in Dart - DevFest Kraków 2014
jskvara
Intro to polymer-Devfest Yaoundé 2013
Intro to polymer-Devfest Yaoundé 2013
gdgyaounde
Polymer 1.0
Polymer 1.0
Cyril Balit
BreizhBeans - Web components
BreizhBeans - Web components
Horacio Gonzalez
Web Components and Modular CSS
Web Components and Modular CSS
Andrew Rota
Web Components mit Polymer und AngularJS 1.x
Web Components mit Polymer und AngularJS 1.x
PatrickHillert
Web Components mit Polymer und AngularJS 1.x
Web Components mit Polymer und AngularJS 1.x
inovex GmbH
Web Components: Web back to future.
Web Components: Web back to future.
GlobalLogic Ukraine
Reaching for the Future with Web Components and Polymer
Reaching for the Future with Web Components and Polymer
FITC
Web components
Web components
Noam Kfir
HTML5
HTML5
Brad Touesnard
HTML5 Essential Training
HTML5 Essential Training
Kaloyan Kosev
Ensuring Design Standards with Web Components
Ensuring Design Standards with Web Components
John Riviello
Ähnlich wie Polymer - Una bella historia de amor
(20)
Polytechnic 1.0 Granada
Polytechnic 1.0 Granada
Polymer - Lego for the web!
Polymer - Lego for the web!
Introduction to web components
Introduction to web components
Polymer-Powered Design Systems - DevFest Florida
Polymer-Powered Design Systems - DevFest Florida
Web Components: back to the future
Web Components: back to the future
Polymer
Polymer
The Structure of Web Code: A Case For Polymer, November 1, 2014
The Structure of Web Code: A Case For Polymer, November 1, 2014
Polymer Code Lab in Dart - DevFest Kraków 2014
Polymer Code Lab in Dart - DevFest Kraków 2014
Intro to polymer-Devfest Yaoundé 2013
Intro to polymer-Devfest Yaoundé 2013
Polymer 1.0
Polymer 1.0
BreizhBeans - Web components
BreizhBeans - Web components
Web Components and Modular CSS
Web Components and Modular CSS
Web Components mit Polymer und AngularJS 1.x
Web Components mit Polymer und AngularJS 1.x
Web Components mit Polymer und AngularJS 1.x
Web Components mit Polymer und AngularJS 1.x
Web Components: Web back to future.
Web Components: Web back to future.
Reaching for the Future with Web Components and Polymer
Reaching for the Future with Web Components and Polymer
Web components
Web components
HTML5
HTML5
HTML5 Essential Training
HTML5 Essential Training
Ensuring Design Standards with Web Components
Ensuring Design Standards with Web Components
Mehr von Israel Blancas
What is happening with my microservices?
What is happening with my microservices?
Israel Blancas
GitHubś data is a life-changer
GitHubś data is a life-changer
Israel Blancas
Progressive Web Apps - Porque nativo no es significa mejor
Progressive Web Apps - Porque nativo no es significa mejor
Israel Blancas
TensorFlow - La IA detrás de Google
TensorFlow - La IA detrás de Google
Israel Blancas
Jornada de asociaciones ETSIIT 2016
Jornada de asociaciones ETSIIT 2016
Israel Blancas
GitHubCity: una biblioteca para conocer tu comunidad
GitHubCity: una biblioteca para conocer tu comunidad
Israel Blancas
NodIO: Marco de desarrollo de aplicaciones para computación evolutiva voluntaria
NodIO: Marco de desarrollo de aplicaciones para computación evolutiva voluntaria
Israel Blancas
El valor de lo abierto de software libre y datos
El valor de lo abierto de software libre y datos
Israel Blancas
Google Summer of Code
Google Summer of Code
Israel Blancas
Paasalo - Usando plataformas como servicio para publicar tu aplicación
Paasalo - Usando plataformas como servicio para publicar tu aplicación
Israel Blancas
Mehr von Israel Blancas
(10)
What is happening with my microservices?
What is happening with my microservices?
GitHubś data is a life-changer
GitHubś data is a life-changer
Progressive Web Apps - Porque nativo no es significa mejor
Progressive Web Apps - Porque nativo no es significa mejor
TensorFlow - La IA detrás de Google
TensorFlow - La IA detrás de Google
Jornada de asociaciones ETSIIT 2016
Jornada de asociaciones ETSIIT 2016
GitHubCity: una biblioteca para conocer tu comunidad
GitHubCity: una biblioteca para conocer tu comunidad
NodIO: Marco de desarrollo de aplicaciones para computación evolutiva voluntaria
NodIO: Marco de desarrollo de aplicaciones para computación evolutiva voluntaria
El valor de lo abierto de software libre y datos
El valor de lo abierto de software libre y datos
Google Summer of Code
Google Summer of Code
Paasalo - Usando plataformas como servicio para publicar tu aplicación
Paasalo - Usando plataformas como servicio para publicar tu aplicación
Kürzlich hochgeladen
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
ScyllaDB
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
Enterprise Knowledge
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
gvaughan
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
BookNet Canada
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
carlostorres15106
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
comworks
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Mark Simos
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Safe Software
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
2toLead Limited
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Manik S Magar
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
Alfredo García Lavilla
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
Dubai Multi Commodity Centre
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
Fwdays
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
Sergiu Bodiu
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
The Digital Insurer
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Padma Pradeep
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Zilliz
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
NavinnSomaal
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Addepto
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
Florian Wilhelm
Kürzlich hochgeladen
(20)
Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
Polymer - Una bella historia de amor
1.
Polymer Una bella historia
de amor +Israel Blancas @iblancasa
2.
Israel Blancas @iblancasa Software Engineer
at Real-Time Innovations Google Developer Group organizer
3.
Mejor tarde que
nunca
4.
5.
6.
7.
8.
Web Components are
low-level primitives that let you define your own HTML Elements.
9.
Template Shadow DOM Custom Elements HTML
Imports native client-side templating scoping, composition define new HTML/DOM loading web components
10.
Primitives are designed
so we can build libraries on top of them.
11.
So what is
Polymer?
12.
Polymer is not a
framework
13.
Existing Frameworks Applications Web Platform Web
Components built with Polymer (or not)
14.
Polymer is not a
framework Sure?
15.
Over 3M pages
16.
17.
18.
19.
20.
21.
22.
Let’s build an element! Image
by Gloria Viganò for the Noun Project
23.
Hey user! Something
awesome happened!
24.
x Hey user! Something
awesome happened! <alert-banner>
25.
alert-banner.html <dom-module id=“alert-banner"> <template> </template> <script> Polymer({ is: ‘alert-banner' }); </script> </dom-module> <link
rel=“import” href=“../polymer/polymer.html”>
26.
alert-banner.html <dom-module id=“alert-banner"> <template> </template> <script> Polymer({ is: ‘alert-banner' }); </script> </dom-module> <link
rel=“import” href=“../polymer/polymer.html”> Import all of your dependencies
27.
alert-banner.html <dom-module id=“alert-banner"> <template> </template> <script> Polymer({ is: ‘alert-banner' }); </script> </dom-module> <link
rel=“import” href=“../polymer/polymer.html”> A container for your element definition
28.
alert-banner.html <dom-module id=“alert-banner"> <template> </template> <script> Polymer({ is: ‘alert-banner' }); </script> </dom-module> Local
DOM is the DOM an elements is in charge of creating and managing <link rel=“import” href=“../polymer/polymer.html”>
29.
Shadow DOM
30.
Shadow DOM ||
“Shady DOM”
31.
Shadow DOM ||
“Shady DOM” == Local DOM
32.
alert-banner.html <dom-module id=“alert-banner"> <template> </template> <script> Polymer({ is: ‘alert-banner' }); </script> </dom-module> Local
DOM is the DOM an elements is in charge of creating and managing <link rel=“import” href=“../polymer/polymer.html”>
33.
alert-banner.html <dom-module id=“alert-banner"> <template> <style> .alert {
background: blue; color: white; } </style> <div class=“alert”> Hey user! Something awesome happened! </div> </template> <script> Polymer({ is: ‘alert-banner' }); </script> </dom-module> <link rel=“import” href=“../polymer/polymer.html”> Hey user! Something awesome happHey user! Something awesome happ
34.
alert-banner.html <dom-module id=“alert-banner"> <template> <style> .alert {
background: blue; color: white; } </style> <div class=“alert”> Hey user! Something awesome happened! </div> </template> <script> Polymer({ is: ‘alert-banner' }); </script> </dom-module> <link rel=“import” href=“../polymer/polymer.html”> Define your prototype
35.
</ul> </header> </nav> <main> <h1 class="logo">Polymer!</h1> <alert-banner></alert-banner> <section> <article class="top-story"> <img
src="headline.jpg"/>
36.
Hey user! Something
awesome happened!
37.
alert-banner.html <dom-module id=“alert-banner"> <template> <style> .alert {
background: blue; color: white; } </style> <div class=“alert”> Hey user! Something awesome happened! </div> </template> <script> Polymer({ is: ‘alert-banner' }); </script> </dom-module> <link rel=“import” href=“../polymer/polymer.html”> Replace hard-coded data
38.
alert-banner.html <dom-module id=“alert-banner"> <template> <style> .alert {
background: blue; color: white; } </style> <div class=“alert”> <content select=“.message”></content> </div> </template> <script> Polymer({ is: ‘alert-banner' }); </script> </dom-module> <link rel=“import” href=“../polymer/polymer.html”> With content elements!
39.
Light DOM -
The world outside your component’s Local DOM
40.
alert-banner.html <dom-module id=“alert-banner"> <template> <style> .alert {
background: blue; color: white; } </style> <div class=“alert”> <content select=“.message”></content> </div> </template> <script> Polymer({ is: ‘alert-banner' }); </script> <link rel=“import” href=“../polymer/polymer.html”> Select content with CSS selectors
41.
</header> </nav> <main> <h1 class="logo">Polymer!</h1> <alert-banner></alert-banner> <section> <article class="top-story"> <img
src="headline.jpg"/> <p>Lorem ipsum dolor sit amet…</p>
42.
</header> </nav> <main> <h1 class="logo">Polymer!</h1> <alert-banner> <span class=“message”> Success!
Your first component! </span> </alert-banner>
43.
</header> </nav> <main> <h1 class="logo">Polymer!</h1> <alert-banner> <span class=“message”> Success!
Your first component! </span> </alert-banner> Matching class
44.
Success! Your first
component!
45.
Elements Building blocks for
a better web
46.
There’s an element
for that!
47.
https://beta.webcomponents.org /collection/Polymer/elements
48.
Applications Combining elements into
something great
49.
Create or reuse
elements in any app
50.
Production-ising Apps
51.
Build process out
of the box
52.
53.
GDG Granada
54.
polymer-project.org
55.
Muchas gracias ¿Preguntas? +Israel Blancas @iblancasa
Jetzt herunterladen