mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
move playground things
This commit is contained in:
35
playground/basic-example/index.html
Normal file
35
playground/basic-example/index.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!--
|
||||
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">
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<!-- Angular2-related imports -->
|
||||
<script src="lib/angular2.js"></script>
|
||||
<script src="lib/zone.js"></script>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<div playground-main>
|
||||
Loading...
|
||||
</div>
|
||||
</body>
|
||||
|
||||
<!-- Application bootstrap logic -->
|
||||
<script>
|
||||
System.import('./main');
|
||||
</script>
|
||||
|
||||
</html>
|
||||
3
playground/basic-example/main.html
Normal file
3
playground/basic-example/main.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<ion-tabbar view-title="My Tabs"></ion-tabbar>
|
||||
<ion-tabbar view-title="Tabs 2"></ion-tabbar>
|
||||
<ion-tabbar view-title="Tabs 4"></ion-tabbar>
|
||||
14
playground/basic-example/main.js
Normal file
14
playground/basic-example/main.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import {bootstrap} from 'angular2/core';
|
||||
import {Component, Template} from 'angular2/angular2';
|
||||
import {Tabbar} from 'ionic/components/tabbar/tabbar';
|
||||
|
||||
import 'ionic/components/tabbar/mixins/android/android-tabbar';
|
||||
|
||||
@Component({ selector: '[playground-main]' })
|
||||
@Template({
|
||||
url: 'main.html',
|
||||
directives: [Tabbar]
|
||||
})
|
||||
class PlaygroundMain {}
|
||||
|
||||
bootstrap(PlaygroundMain)
|
||||
Reference in New Issue
Block a user