mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
rename src to ionic
This commit is contained in:
1
ionic/components/switch/test/basic/e2e.js
Normal file
1
ionic/components/switch/test/basic/e2e.js
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
26
ionic/components/switch/test/basic/main.html
Normal file
26
ionic/components/switch/test/basic/main.html
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
<ion-view nav-title="Switches">
|
||||
|
||||
<ion-content>
|
||||
|
||||
<div class="list-header">Some Switches</div>
|
||||
|
||||
<ion-list>
|
||||
|
||||
<ion-switch [checked]="true">
|
||||
Apples
|
||||
</ion-switch>
|
||||
|
||||
<ion-switch>
|
||||
Bananas
|
||||
</ion-switch>
|
||||
|
||||
<ion-switch [disabled]="true">
|
||||
Oranges
|
||||
</ion-switch>
|
||||
|
||||
</ion-list>
|
||||
|
||||
</ion-content>
|
||||
|
||||
</ion-view>
|
||||
19
ionic/components/switch/test/basic/main.js
Normal file
19
ionic/components/switch/test/basic/main.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import {bootstrap} from 'angular2/core';
|
||||
import {Component, Template} from 'angular2/angular2';
|
||||
import {View} from 'ionic2/components/view/view';
|
||||
import {Content} from 'ionic2/components/content/content';
|
||||
import {Switch} from 'ionic2/components/switch/switch';
|
||||
import {List} from 'ionic2/components/list/list';
|
||||
|
||||
@Component({ selector: '[ion-app]' })
|
||||
@Template({
|
||||
url: 'main.html',
|
||||
directives: [View, Content, Switch, List]
|
||||
})
|
||||
class IonicApp {
|
||||
constructor() {
|
||||
console.log('IonicApp Start')
|
||||
}
|
||||
}
|
||||
|
||||
bootstrap(IonicApp)
|
||||
Reference in New Issue
Block a user