forked from modern-javascript/angular2-data-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
38 lines (35 loc) · 1.26 KB
/
index.html
File metadata and controls
38 lines (35 loc) · 1.26 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Modern JS</title>
<!-- Angular 2 (support) -->
<script src='node_modules/angular2/bundles/angular2-polyfills.js'></script>
<script src='node_modules/systemjs/dist/system.src.js'></script>
<script src='node_modules/rxjs/bundles/Rx.js'></script>
<script src='node_modules/angular2/bundles/angular2.dev.js'></script>
<script src='node_modules/angular2/bundles/router.dev.js'></script>
<script src='node_modules/angular2/bundles/http.dev.js'></script>
<!-- Load our Angular components using System.js -->
<script type='text/javascript'>
System.config({
packages: {
"src": {
format: "register",
defaultExtension: "js"
}
}
});
System.import("src/bootstrap/bootstrap"); //Load the root component
</script>
<style>
body {
font-family: Arial, Helvetica, sans-serif;
}
</style>
</head>
<body>
Demonstration of how data flows from the root component to child components in Angular 2 using data binding. Events may be used to flow the data back to parent components.
<modern-js></modern-js>
</body>
</html>