The app is writen in ES6 and transpiles to ES5 and dart as part of the usual build. The app contains a component, a directive and a services wired together through dependency injection. Before Each: - gulp build For es5: - gulp serve - open 'localhost:8000/js/examples/lib/hello_world/' For dart: - gulp examples/pub.serve - open 'localhost:8080'
21 lines
455 B
HTML
21 lines
455 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Hello Angular 2.0 (Dart)</title>
|
|
<script type="application/dart" src="main.dart"></script>
|
|
<script src="packages/browser/dart.js"></script>
|
|
</head>
|
|
<body>
|
|
<hello-app>
|
|
Loading...
|
|
</hello-app>
|
|
</body>
|
|
</html>
|
|
|
|
<!-- to run do:
|
|
1) gulp build
|
|
2) gulp examples/pub.serve
|
|
3) open localhost:8080 in dartium or chrome.
|
|
TODO(rado): merge with JS's index.html in ../src/hello_world/
|
|
-->
|