blob: 450b697d9c729b293029d0b4ee07ef8afa26040a (
plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
<!doctype html>
<html>
<head>
<title>vaadin-grid Code Examples - Angular 2 Integration</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
<link rel="import" href="common.html">
<script src="js_dependencies/system.js"></script>
<script src="js_dependencies/typescript.js"></script>
<script src="js_dependencies/angular2-polyfills.min.js"></script>
<script src="js_dependencies/Rx.min.js"></script>
<script src="js_dependencies/angular2.min.js"></script>
<style>
body {
padding: 0;
margin: 0;
font-family: 'Helvetica Neue', Helvetica, Arial, 'Microsoft YaHei New', 'Microsoft Yahei', SimSun, STXihei, sans-serif;
}
img.user-image {
position: absolute;
bottom: 0px;
right: 0px;
max-width: 33%;
max-height: 33%;
}
</style>
<script>
(function wait() {
// Wait for the polyfilled browsers to finish importing needed resources
if (!document.querySelector('link[href$="vaadin-grid.html"]') || !window.getJSON) {
return setTimeout(wait, 50);
}
// Configure SystemJS
System.config({
transpiler: 'typescript',
typescriptOptions: {emitDecoratorMetadata: true},
packages: {'src': {defaultExtension: 'ts'}}
});
// Bootstrap
System.import('angular2/platform/browser').then(function(ng) {
System.import('angular-grid.ts').then(function(src) {
ng.bootstrap(src.AngularGrid);
});
});
})();
</script>
</head>
<body>
<angular-grid></angular-grid>
</body>
</html>
|