This repository was archived by the owner on Apr 12, 2024. It is now read-only.
File tree 1 file changed +18
-20
lines changed
1 file changed +18
-20
lines changed Original file line number Diff line number Diff line change @@ -211,26 +211,24 @@ In the following example we create two directives.
211
211
212
212
<example module="form-example1">
213
213
<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>
234
232
</file>
235
233
236
234
<file name="script.js">
You can’t perform that action at this time.
0 commit comments