Web Components
Introduction
- Help to coordinate people for develop a product.
- Parallel work.
- Divide and rule.
- Maintainability.
A software component is a element independent, that can be composed for other components and It's used to create a software.
+ Reusability.
+ Interoperability.
+ Encapsulation.
+ Interchangeable.
"A web Component provides a mechanism to build new custom html tags that include a semantic, a behavior functional and a presentation logic own. "
Jaiver Vélez Reyes
Model Rendering of templates which this are activated when component is rendered.
<html> <head> <title>my_first_template</title> </head> <body> <template> <div class="inside_text"><div> </template> </body> </html>
Allow web developers to define new types of HTML elements.
var userProfile= document.registerElement('user-profile'); document.body.appendChild(new userProfile());
Is a encapsulation Model that allow isolate the intern content of component of this, inside a web app.
<div><h3>Light DOM</h3></div> <script> var root = document.querySelector('div').createShadowRoot(); root.innerHTML = '<style>h3{ color: red; }</style>' + '<h3>Shadow DOM</h3>'; </script>
<head> <link rel="import" href="/path/to/imports/stuff.html"> </head>
http://caniuse.com/#search=web%xs
It makes it possible for developers to use these standards today across all modern browsers.
webcomponents.js
https://github.com/webcomponents/webcomponentsjs
- web-components-in-production-use-are-we-there-yet-
- bringing-componentization-to-the-web-an-overview-of-web-components
- customelements
- http://www.slideshare.net/jvelez77
http://rockalabs.com
jdmorales092@gmail.com
jdmorales
/ web_components
By product@dailybot.com
Run successful remote and hybrid teams