Upload
christoforus-surjoputro
View
67
Download
0
Embed Size (px)
Citation preview
Introduction to polymer projectChristoforus SurjoputroMateri: https://github.com/3mp3ri0r/introduction-to-polymer-projectFacebook: www.facebook.com/totoganteng
when presented with an abundance of choice, you can feel increasingly unsureof whether yours is the right one
- Addy Osmani
Template
Shadow DOM
Custom Elements
HTML Imports
native client-side templating
scoping, composition
define new HTML/DOM
loading web components
https://translate.google.com/communityhttp://projector.tensorflow.org
Chrome Dev Editorhttps://gaming.youtube.com
element-baru.html
<dom-module id=“element-baru"> <template> </template> <script> Polymer({ is: ‘element-baru' }); </script></dom-module>
<link rel=“import” href=“../polymer/polymer.html”>
element-baru.html
<dom-module id=“element-baru"> <template> </template> <script> Polymer({ is: ‘element-baru' }); </script></dom-module>
<link rel=“import” href=“../polymer/polymer.html”>
Import all of yourdependencies.HTML Imports
element-baru.html
<dom-module id=“element-baru"> <template> </template> <script> Polymer({ is: ‘element-baru' }); </script></dom-module>
<link rel=“import” href=“../polymer/polymer.html”>
A container for yourelement definition.Custom Element
element-baru.html
<dom-module id=“alert-banner"> <template> </template> <script> Polymer({ is: ‘alert-banner' }); </script></dom-module>
Local DOM is the DOMan elements is in charge of creating and managing.Template and Shadow DOM
<link rel=“import” href=“../polymer/polymer.html”>
elements.polymer-project.org
Thank You!Christoforus SurjoputroMateri: https://github.com/3mp3ri0r/introduction-to-polymer-projectFacebook: www.facebook.com/totoganteng