demo: make examples require no build-step. more in README

This commit is contained in:
Andrew
2015-03-21 18:42:36 -06:00
parent 7f5193f009
commit 7385eba03f
18 changed files with 189 additions and 101 deletions

View File

@@ -1,46 +1,23 @@
<!--
EVERYTHING in index.html file will change
Don't feel like you have to learn all of this boilerplate.
It's not important and will change.
-->
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />
<link rel="stylesheet" href="/css/ionic.css" />
<!-- ES6-related imports -->
<script src="/lib/traceur-runtime.js"></script>
<script src="/lib/es6-module-loader-sans-promises.src.js"></script>
<script src="/lib/extension-register.js"></script>
<script>
register(System);
</script>
<!-- Third party imports -->
<script src="/lib/angular2.js"></script>
<script src="/lib/zone.js"></script>
<script src="/lib/hammer.js"></script>
<link rel="stylesheet" href="/dist/css/ionic.css" />
<script src="/jspm_packages/system.js"></script>
<script src="/example-bootstrap.js"></script>
</head>
<body>
<div playground-main>
Loading...
</div>
<body my-app>
Loading...
</body>
<script>
function exampleReady() {
System.import('./main');
}
</script>
</body>
<!-- Application bootstrap logic -->
<script>
System.baseURL = 'http://localhost:9000/';
System.register({
map: {
'ionic': '../ionic'
}
});
System.import('basic-example/main');
</script>
</html>