diff --git a/ionic/components/app/test/snapcat/index.js b/ionic/components/app/test/snapcat/index.js index 7d96d821ad..259fca2340 100644 --- a/ionic/components/app/test/snapcat/index.js +++ b/ionic/components/app/test/snapcat/index.js @@ -1,16 +1,27 @@ 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 {FormBuilder, Control, ControlGroup, Validators, formDirectives} from 'angular2/forms'; -import {Nav, Slides, Slide, Content, Button, List, Item} from 'ionic/ionic'; +import {Nav, Segment, SegmentButton, Slides, Slide, Content, Button, List, Item} from 'ionic/ionic'; @Component({ selector: 'ion-app' }) @View({ templateUrl: 'main.html', - directives: [Nav, Slides, Slide, Content, Button, List, Item] + directives: [formDirectives, Nav, Segment, SegmentButton, Slides, Slide, Content, Button, List, Item] }) export class IonicApp { constructor() { + + this.filterForm = new ControlGroup({ + filterControl: new Control("") + }); + /* + var fb = new FormBuilder(); + this.form = fb.group({ + filter: ['new'] + }); + */ } } diff --git a/ionic/components/app/test/snapcat/main.html b/ionic/components/app/test/snapcat/main.html index 04bf55872c..901bf60f0d 100644 --- a/ionic/components/app/test/snapcat/main.html +++ b/ionic/components/app/test/snapcat/main.html @@ -25,8 +25,15 @@ -
- feed +
+ + + New + + + Best + +
@@ -46,7 +53,7 @@
It is good to realize that if love and peace can prevail on earth, and if we can teach our children to honor nature's gifts, the joys and beauties of the outdoors will be here forever.
- +