mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
playground: fix examples
This commit is contained in:
@@ -9,16 +9,16 @@
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<!-- 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 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>
|
||||
|
||||
<!-- Angular2-related imports -->
|
||||
<script src="lib/angular2.js"></script>
|
||||
<script src="lib/zone.js"></script>
|
||||
<script src="/lib/angular2.js"></script>
|
||||
<script src="/lib/zone.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
@@ -29,7 +29,13 @@
|
||||
|
||||
<!-- Application bootstrap logic -->
|
||||
<script>
|
||||
System.import('./main');
|
||||
System.baseURL = 'http://localhost:9000/basic-example/';
|
||||
System.register({
|
||||
map: {
|
||||
'ionic': '../ionic'
|
||||
}
|
||||
});
|
||||
System.import('main');
|
||||
</script>
|
||||
|
||||
</html>
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
console.log('hello');
|
||||
import {bootstrap} from 'angular2/core';
|
||||
import {Component, Template} from 'angular2/angular2';
|
||||
import {Tabbar} from 'ionic/components/tabbar/tabbar';
|
||||
@@ -5,7 +6,7 @@ import {Tabbar} from 'ionic/components/tabbar/tabbar';
|
||||
import 'ionic/components/tabbar/mixins/android/android-tabbar';
|
||||
|
||||
@Component({ selector: '[playground-main]' })
|
||||
@Template({
|
||||
@Template({
|
||||
url: 'main.html',
|
||||
directives: [Tabbar]
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user