diff --git a/ionic/components/segment/segment.ts b/ionic/components/segment/segment.ts index b53c2c4dd3..9c6a262de5 100644 --- a/ionic/components/segment/segment.ts +++ b/ionic/components/segment/segment.ts @@ -5,10 +5,12 @@ import {Config} from '../../config/config'; /** + * @name Segment * @description * A Segment is a group of buttons, sometimes known as Segmented Controls, that allow the user to interact with a compact group of a number of controls. - * * Segments provide functionality similar to tabs, selecting one will unselect all others. You should use a tab bar instead of a segmented control when you want to let the user move back and forth between distinct pages in your app. + * You could use Angular 2's `ng-model` or `FormBuilder` API. For an overview on how `FormBuilder` works, checkout [Angular 2 Forms](http://learnangular2.com/forms/), or [Angular FormBuilder](https://angular.io/docs/ts/latest/api/common/FormBuilder-class.html) + * * * @usage * ```html @@ -20,8 +22,11 @@ import {Config} from '../../config/config'; * Enemies * * + *``` * + * Or with `FormBuilder` * + *```html *