Notice: Undefined index: HTTP_ACCEPT_LANGUAGE in /var/www/vhost/wpiece.com/home/html/comun/configuracion.php on line 24
Web components en la nube con wpiece

Web Components In the cloud


The Web Components is a new standard for the web. It is being promoted for the development of the web-based components, so that they can be encapsulated and reused wherever they are needed.

We show you how in wpiece you can create and use Web Components by hosting them in the cloud.

If you need ideas on how to use it we show you some examples of Cloud Web Componentes

Web ComponentsIn the cloud

Although not yet supported by all browsers there are several javascript extensions that allow you to use them already. A good example is the polyfill that makes available to developers webcomponents.org

Using wpiece it is very easy way to create a piece in the cloud for our Web Component, include the necessary elements (template, custom element, shadow DOM) and import final HTML in our web

This makes it possible to use our Web Components with a easy and clean code. Let's see a simple example (Hello World!). View it in action

<!DOCTYPE html>
<html lang="en">
<head>
	<script src="https://www.wpiece.com/js/webcomponents.min.js"></script>
	<link  rel="import" class="wpiece" id="7_17" />
</head>

<body>
	<hello-world who="I'm a Web Component"></hello-world>
	<script type="text/javascript" src="http://www.wpiece.com/js/wpiece.js"></script>
</body>
</html>