aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy2013-07-19 10:13:36 -0700
committerPawel Kozlowski2013-07-21 21:24:53 +0200
commit3591ae010398da67950eeefe4f8613e69bb786eb (patch)
tree68fd1948b994fa6e5d894012a8918af2d2fb883d
parent5fedfd79a5720a7b275162ef1e265671026943bc (diff)
downloadangular.js-3591ae010398da67950eeefe4f8613e69bb786eb.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 246c827e..b19e005f 100644
--- a/src/ng/directive/input.js
+++ b/src/ng/directive/input.js
@@ -112,9 +112,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/>