EVOLUTION-MANAGER
Edit File: input[checkbox].html
<a href='https://github.com/angular/angular.js/edit/v1.3.x/src/ng/directive/input.js?message=docs(input[checkbox])%3A%20describe%20your%20change...#L885' class='improve-docs btn btn-primary'><i class="glyphicon glyphicon-edit"> </i>Improve this Doc</a> <a href='https://github.com/angular/angular.js/tree/v1.3.9/src/ng/directive/input.js#L885' class='view-source pull-right btn btn-primary'> <i class="glyphicon glyphicon-zoom-in"> </i>View Source </a> <header class="api-profile-header"> <h1 class="api-profile-header-heading">input[checkbox]</h1> <ol class="api-profile-header-structure naked-list step-list"> <li> - input in module <a href="api/ng">ng</a> </li> </ol> </header> <div class="api-profile-description"> <p>HTML checkbox.</p> </div> <div> <h2>Directive Info</h2> <ul> <li>This directive executes at priority level 0.</li> </ul> <h2>Usage</h2> <pre><code><input type="checkbox" ng-model="" [name=""] [ng-true-value=""] [ng-false-value=""] [ng-change=""]></code></pre> <section class="api-section"> <h3>Arguments</h3> <table class="variables-matrix input-arguments"> <thead> <tr> <th>Param</th> <th>Type</th> <th>Details</th> </tr> </thead> <tbody> <tr> <td> ngModel </td> <td> <a href="" class="label type-hint type-hint-string">string</a> </td> <td> <p>Assignable angular expression to data-bind to.</p> </td> </tr> <tr> <td> name <div><em>(optional)</em></div> </td> <td> <a href="" class="label type-hint type-hint-string">string</a> </td> <td> <p>Property name of the form under which the control is published.</p> </td> </tr> <tr> <td> ngTrueValue <div><em>(optional)</em></div> </td> <td> <a href="" class="label type-hint type-hint-expression">expression</a> </td> <td> <p>The value to which the expression should be set when selected.</p> </td> </tr> <tr> <td> ngFalseValue <div><em>(optional)</em></div> </td> <td> <a href="" class="label type-hint type-hint-expression">expression</a> </td> <td> <p>The value to which the expression should be set when not selected.</p> </td> </tr> <tr> <td> ngChange <div><em>(optional)</em></div> </td> <td> <a href="" class="label type-hint type-hint-string">string</a> </td> <td> <p>Angular expression to be executed when input changes due to user interaction with the input element.</p> </td> </tr> </tbody> </table> </section> <h2 id="example">Example</h2><p> <div> <a ng-click="openPlunkr('examples/example-checkbox-input-directive')" class="btn pull-right"> <i class="glyphicon glyphicon-edit"> </i> Edit in Plunker</a> <div class="runnable-example" path="examples/example-checkbox-input-directive" name="checkbox-input-directive" module="checkboxExample"> <div class="runnable-example-file" name="index.html" language="html" type="html"> <pre><code><script> angular.module('checkboxExample', []) .controller('ExampleController', ['$scope', function($scope) { $scope.value1 = true; $scope.value2 = 'YES' }]); </script> <form name="myForm" ng-controller="ExampleController"> Value1: <input type="checkbox" ng-model="value1"> <br/> Value2: <input type="checkbox" ng-model="value2" ng-true-value="'YES'" ng-false-value="'NO'"> <br/> <tt>value1 = {{value1}}</tt><br/> <tt>value2 = {{value2}}</tt><br/> </form></code></pre> </div> <div class="runnable-example-file" name="protractor.js" type="protractor" language="js"> <pre><code>it('should change state', function() { var value1 = element(by.binding('value1')); var value2 = element(by.binding('value2')); expect(value1.getText()).toContain('true'); expect(value2.getText()).toContain('YES'); element(by.model('value1')).click(); element(by.model('value2')).click(); expect(value1.getText()).toContain('false'); expect(value2.getText()).toContain('NO'); });</code></pre> </div> <iframe class="runnable-example-frame" src="examples/example-checkbox-input-directive/index.html" name="example-checkbox-input-directive"></iframe> </div> </div> </p> </div>