Skip to content

Commit 7fdffea

Browse files
committed
Add input checkbox example demo
1 parent 3083e78 commit 7fdffea

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,13 @@ <h1>Angular Validation.
117117
<option>5</option>
118118
</select>
119119
<span id="selectBlur"></span>
120+
121+
<label>Checkbox</label>
122+
<div class="large-12 columns">
123+
<input id="checkbox1" type="checkbox" name="checkBlur" ng-model="form2.check" validator="required" message-id="checkBlur"/><label for="checkbox1">Checkbox 1</label>
124+
<span id="checkBlur"></span>
125+
</div>
126+
120127
</fieldset>
121128

122129
<ul class="button-group">
@@ -250,6 +257,10 @@ <h1>Angular Validation.
250257
<input type="text" name="emailRequiredOnly{{$index}}" ng-model="a.required" validator="required", message-id="emailRequiredOnly{{$index}}"/>
251258
<span id="emailRequiredOnly{{$index}}"></span>
252259
</div>
260+
<blockquote ng-non-bindable>
261+
In name attribute we have to use {{$index}}
262+
<cite>eg. emailRequiredOnly{{$index}}</cite>
263+
</blockquote>
253264
</fieldset>
254265

255266
<ul class="button-group">

0 commit comments

Comments
 (0)