Angularjs Examples

AJS Examples


AngularJS Input Type Checkbox

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

AngularJS Input Type Checkbox Arguments

Here is a list of AngularJS Input Type Checkbox Arguments.

DirectivesDescription
ng-modelAngularJS 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.

AngularJS Input Type Checkbox Example

Above example will produce following output

See Live Example