docs(labels): basic usage

This commit is contained in:
Drew Rygh
2015-12-04 11:22:41 -06:00
parent 86a687a5df
commit 3f25687c1c

View File

@ -3,7 +3,19 @@ import {Directive, Optional} from 'angular2/angular2';
import {Config} from '../../config/config'; import {Config} from '../../config/config';
import {TextInput} from './text-input'; import {TextInput} from './text-input';
import {pointerCoord, hasPointerMoved} from '../../util/dom'; import {pointerCoord, hasPointerMoved} from '../../util/dom';
/**
* @name Label
* @description
* Labels describe the data that the user should enter in to an input element.
* @usage
* ```html
* <ion-input>
* <ion-label>Username</ion-label>
* <input type="text" value="">
* </ion-input>
* ```
*
*/
@Directive({ @Directive({
selector: 'ion-label', selector: 'ion-label',