Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 0db301f

Browse files
NarretzIgorMinar
authored andcommitted
docs(guide/forms): remove unnecessary controller reference
the controller reference was breaking the custom validation example Closes #6525 Closes #6533
1 parent 8e6d387 commit 0db301f

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

docs/content/guide/forms.ngdoc

+18-20
Original file line numberDiff line numberDiff line change
@@ -211,26 +211,24 @@ In the following example we create two directives.
211211

212212
<example module="form-example1">
213213
<file name="index.html">
214-
<div ng-controller="Controller">
215-
<form name="form" class="css-form" novalidate>
216-
<div>
217-
Size (integer 0 - 10):
218-
<input type="number" ng-model="size" name="size"
219-
min="0" max="10" integer />{{size}}<br />
220-
<span ng-show="form.size.$error.integer">This is not valid integer!</span>
221-
<span ng-show="form.size.$error.min || form.size.$error.max">
222-
The value must be in range 0 to 10!</span>
223-
</div>
224-
225-
<div>
226-
Length (float):
227-
<input type="text" ng-model="length" name="length" smart-float />
228-
{{length}}<br />
229-
<span ng-show="form.length.$error.float">
230-
This is not a valid float number!</span>
231-
</div>
232-
</form>
233-
</div>
214+
<form name="form" class="css-form" novalidate>
215+
<div>
216+
Size (integer 0 - 10):
217+
<input type="number" ng-model="size" name="size"
218+
min="0" max="10" integer />{{size}}<br />
219+
<span ng-show="form.size.$error.integer">This is not valid integer!</span>
220+
<span ng-show="form.size.$error.min || form.size.$error.max">
221+
The value must be in range 0 to 10!</span>
222+
</div>
223+
224+
<div>
225+
Length (float):
226+
<input type="text" ng-model="length" name="length" smart-float />
227+
{{length}}<br />
228+
<span ng-show="form.length.$error.float">
229+
This is not a valid float number!</span>
230+
</div>
231+
</form>
234232
</file>
235233

236234
<file name="script.js">

0 commit comments

Comments
 (0)