mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +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]
|
||||
})
|
||||
|
@ -7,13 +7,13 @@ export class Ion {
|
||||
var platformName = Platform.getPlatform();
|
||||
var platformConfig = this.$config._platforms[platformName];
|
||||
if (platformConfig) {
|
||||
for (var i = 0, ii = platformConfig._mixins.length; i < ii; i++)
|
||||
for (var i = 0, ii = platformConfig._mixins.length; i < ii; i++) {
|
||||
platformConfig._mixins[i](this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
assign() {
|
||||
extend() {
|
||||
for (var i = 0, ii = arguments.length; i < ii; i++) {
|
||||
var obj = arguments[i];
|
||||
if (obj) {
|
||||
|
@ -8,9 +8,10 @@ TabbarConfig.platform('android')
|
||||
// Draggable(tabbar)
|
||||
// tabbarInstance.setAsHeader()
|
||||
|
||||
tabbar.assign({
|
||||
tabbar.extend({
|
||||
press() {
|
||||
alert('pressing from android mixin');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
|
0
src/core/mixins/draggable.js
Normal file
0
src/core/mixins/draggable.js
Normal file
Reference in New Issue
Block a user