mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Basic segment
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<ion-content class="padding">
|
||||
<ion-segment>
|
||||
<button ion-button class="active">
|
||||
Standard
|
||||
</button>
|
||||
<button ion-button>
|
||||
Hybrid
|
||||
</button>
|
||||
<button ion-button>
|
||||
Satellite
|
||||
</button>
|
||||
</ion-segment>
|
||||
</ion-content>
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
import {Component, View, bootstrap} from 'angular2/angular2'
|
||||
import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/forms';
|
||||
//import {Button, Switch, Form, List, Label, Item, Input, Content} from 'ionic/ionic';
|
||||
import {IONIC_DIRECTIVES} from 'ionic/ionic'
|
||||
|
||||
console.log([FormDirectives].concat(IONIC_DIRECTIVES));
|
||||
|
||||
@Component({ selector: '[ion-app]' })
|
||||
@View({
|
||||
templateUrl: 'main.html',
|
||||
directives: [FormDirectives].concat(IONIC_DIRECTIVES)
|
||||
})
|
||||
class IonicApp {
|
||||
constructor() {
|
||||
}
|
||||
}
|
||||
|
||||
bootstrap(IonicApp)
|
||||
|
||||
Reference in New Issue
Block a user