feat(examples): adds hello-world app.
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'
This commit is contained in:
20
modules/examples/web/index.html
Normal file
20
modules/examples/web/index.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!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/
|
||||
-->
|
Reference in New Issue
Block a user