Segment love

This commit is contained in:
Max Lynch
2015-05-08 15:14:17 -05:00
parent 7f1e2dc5df
commit 966a02900d
7 changed files with 123 additions and 23 deletions

View File

@@ -1,13 +1,29 @@
<ion-content class="padding">
<ion-segment>
<button ion-button class="active">
<ion-segment-button value="standard" ion-button>
Standard
</ion-segment-button>
<ion-segment-button value="hybrid" ion-button>
Hybrid
</ion-segment-button>
<ion-segment-button value="sat" ion-button>
Satellite
</ion-segment-button>
<!--
<button ion-button class="active" [segment-value]="standard">
Standard
</button>
<button ion-button>
<button ion-button [segment-value]="hybrid">
Hybrid
</button>
<button ion-button>
<button #sat ion-button [segment-value]="sat">
Satellite
</button>
-->
</ion-segment>
</ion-content>

View File

@@ -1,10 +1,7 @@
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',