mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(ionCheckbox): write docs
This commit is contained in:
16
js/ext/angular/src/directive/ionicCheckbox.js
vendored
16
js/ext/angular/src/directive/ionicCheckbox.js
vendored
@@ -3,7 +3,21 @@
|
||||
|
||||
angular.module('ionic.ui.checkbox', [])
|
||||
|
||||
|
||||
/**
|
||||
* @ngdoc directive
|
||||
* @name ionCheckbox
|
||||
* @module ionic
|
||||
* @restrict E
|
||||
* @description
|
||||
* No different than the HTML checkbox input, except it's styled differently.
|
||||
*
|
||||
* Behaves like any [AngularJS checkbox](http://docs.angularjs.org/api/ng/input/input[checkbox]).
|
||||
*
|
||||
* @usage
|
||||
* ```html
|
||||
* <ion-checkbox ng-model="isChecked">Checkbox Label</ion-checkbox>
|
||||
* ```
|
||||
*/
|
||||
.directive('ionCheckbox', function() {
|
||||
return {
|
||||
restrict: 'E',
|
||||
|
||||
Reference in New Issue
Block a user