aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy2013-07-19 10:13:36 -0700
committerPawel Kozlowski2013-07-21 21:06:40 +0200
commite14e21904aa61c293cfcb4bd447fabcd192601e4 (patch)
tree909d58d6a6077a594911105635ff4b23b17e47bb
parentfd45d590ef924c25903832086a63172f98ea189c (diff)
downloadangular.js-e14e21904aa61c293cfcb4bd447fabcd192601e4.tar.bz2
docs(input): fix example
The input [number] error spans did not show on the example, as they were relying on an non-existing property (myForm.list.$error) vs the working property (myForm.input.$error)
-rw-r--r--src/ng/directive/input.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ng/directive/input.js b/src/ng/directive/input.js
index 2d3210d5..af028fd5 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -120,9 +120,9 @@ var inputType = {
<form name="myForm" ng-controller="Ctrl">
Number: <input type="number" name="input" ng-model="value"
min="0" max="99" required>
- <span class="error" ng-show="myForm.list.$error.required">
+ <span class="error" ng-show="myForm.input.$error.required">
Required!</span>
- <span class="error" ng-show="myForm.list.$error.number">
+ <span class="error" ng-show="myForm.input.$error.number">
Not valid number!</span>
<tt>value = {{value}}</tt><br/>
<tt>myForm.input.$valid = {{myForm.input.$valid}}</tt><br/>