The AngularJS input types are HTML input element control and used togather with ng-model directive. AngularJS input type Checkbox can be decorate with various AngularJS arguments like name, ng-true-value, ng-false-value and ng-change.
Syntax
Here is a list of AngularJS Input Type Checkbox Arguments.
Directives | Description |
---|---|
ng-model | AngularJS expression to bind the data. |
name (optional) | Name of the control input control. |
ng-true-value (optional) | The value to which the expression should be set when selected. |
ng-false-value (optional) | The value to which the expression should be set when not selected. |
ng-change (optional) | AngularJS expression to be executed when input value changes. |
Above example will produce following output
See Live Example