Files
web-components-workshop-dep…/index.5.html
Julien Lengrand-Lambert 14a31b789c Adds template example
2017-12-12 20:34:37 +01:00

27 lines
826 B
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="/bower_components/webcomponentsjs/webcomponents-lite.js"></script>
</head>
<body>
<h1>WebComponents workshop</h1>
<p>In this workshop, we will create new custom HTML Components</p>
<h2>Creating a new component from a template</h2>
<hello-world-template></hello-world-template>
<template id="hello-world-template">
<style>
h1 {
background-color: red;
}
</style>
<h1>Hello Meetup from a template!</h1>
</template>
<script src="src/components/hello-world-template.js"></script>
</body>
</html>