From 7a46b2ff966f88997386f50701a8029a76882e01 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 8 Jun 2015 18:09:40 -0500 Subject: [PATCH] Derpleton --- ionic/components/app/test/snapcat/index.js | 15 +++++++++++++-- ionic/components/app/test/snapcat/main.html | 13 ++++++++++--- 2 files changed, 23 insertions(+), 5 deletions(-) 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.
- +