import {NgFor, DynamicComponentLoader, Injector, DomRenderer, ElementRef} from 'angular2/angular2'; import {Ancestor} from 'angular2/src/core/annotations_impl/visibility'; import {Component, Directive} from 'angular2/src/core/annotations_impl/annotations'; import {View} from 'angular2/src/core/annotations_impl/view'; import {FormBuilder, Validators, FormDirectives, ControlGroup} from 'angular2/forms'; import {Segment, SegmentButton, List, Item, ActionMenu, Modal, ModalRef, NavbarTemplate, Navbar, NavController, Button, Content} from 'ionic/ionic'; @Component({ selector: 'ion-view' }) @View({ template: ` Cards

Search Bar

The Search Bar is a multi-function search component.

The bar can sit standalone as part of a form or header search, or it can also handle and display a list of search results.

`, directives: [NavbarTemplate, Navbar, Content, List, Item, Segment, SegmentButton] }) export class SegmentPage { constructor() { var fb = new FormBuilder(); this.form = fb.group({ mapStyle: ['hybrid', Validators.required] }); } }