AngularJS

AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

AngularJS ng checked Directive

AngularJS ng-checked Directive

 

 

The ng-checked directive is used to set the checked attribute of a checkbox or a radio button. The checkbox or radio button will be checked if the expression inside the ng-checked attribute returns true.

 

Syntax:-

 

< input type="checkbox | radio" ng-checked="expression" >< /input >

 

Further Explanation:-

 

Value Description
expression An expression that will set the element's checked attribute if it returns true.

Code Explanation

All Tutorials related to AngularJS Directives

All Sections related to AngularJS