mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Slides
This commit is contained in:
19
ionic/components/app/test/snapcat/index.js
Normal file
19
ionic/components/app/test/snapcat/index.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import {bootstrap} from 'angular2/angular2'
|
||||
import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations';
|
||||
import {View} from 'angular2/src/core/annotations_impl/view';
|
||||
|
||||
import {Nav, Slides, Slide, Content, Button} from 'ionic/ionic';
|
||||
|
||||
@Component({ selector: 'ion-app' })
|
||||
@View({
|
||||
templateUrl: 'main.html',
|
||||
directives: [Nav, Slides, Slide, Content, Button]
|
||||
})
|
||||
export class IonicApp {
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
|
||||
export function main() {
|
||||
bootstrap(IonicApp);
|
||||
}
|
||||
31
ionic/components/app/test/snapcat/main.html
Normal file
31
ionic/components/app/test/snapcat/main.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<ion-slides>
|
||||
<ion-slide>
|
||||
<ion-view>
|
||||
<ion-toolbar>
|
||||
<ion-title>secret</ion-title>
|
||||
</ion-toolbar>
|
||||
<ion-content>
|
||||
<h2>Page 1</h2>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
</ion-slide>
|
||||
<ion-slide>
|
||||
<ion-view>
|
||||
<ion-toolbar>
|
||||
<ion-title>feed</ion-title>
|
||||
</ion-toolbar>
|
||||
<ion-content>
|
||||
<h2>Page 2</h2>
|
||||
</ion-content>
|
||||
</ion-view>
|
||||
</ion-slide>
|
||||
</ion-slides>
|
||||
|
||||
<style>
|
||||
.navbar-container {
|
||||
background-color: #ff6600 !important;
|
||||
}
|
||||
.nav-ios ion-title {
|
||||
color: #fff !important;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user