-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
28 lines (28 loc) · 790 Bytes
/
index.html
File metadata and controls
28 lines (28 loc) · 790 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!doctype html>
<html>
<head>
<title>Angular 2 Component</title>
<style>@import "css/style.css";</style>
<script src="vendor/traceur-runtime/traceur-runtime.js"></script>
<script src="https://jspm.io/system@0.16.js"></script>
<script src="https://code.angularjs.org/2.0.0-alpha.31/angular2.dev.js"></script>
</head>
<body>
<hello></hello>
<native-hello></native-hello>
<script>
System.config({baseURL : "/js"});
System.import('main');
</script>
<script type="text/javascript">
var nativeHello = document.querySelector('native-hello');
nativeHello.createShadowRoot();
nativeHello.shadowRoot.innerHTML = `
<h1>Native Shadow DOM</h1>
<div>
<input></input>
<button>Click Me</button>
</div>`;
</script>
</body>
</html>