mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
demo: make examples require no build-step. more in README
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user