From 66e6c1ce2c4669076916872c3142159ae46e0a9a Mon Sep 17 00:00:00 2001
From: Vojta Jina
Date: Tue, 13 Mar 2012 15:55:22 -0700
Subject: docs(forms): Change validation tokens to lowercase
---
docs/content/guide/dev_guide.forms.ngdoc | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
(limited to 'docs')
diff --git a/docs/content/guide/dev_guide.forms.ngdoc b/docs/content/guide/dev_guide.forms.ngdoc
index 539c673f..c643a613 100644
--- a/docs/content/guide/dev_guide.forms.ngdoc
+++ b/docs/content/guide/dev_guide.forms.ngdoc
@@ -138,8 +138,8 @@ This allows us to extend the above example with these features:
E-mail:
Invalid:
- Tell us your email.
- This is not a valid email.
+ Tell us your email.
+ This is not a valid email.
Gender: male
@@ -216,8 +216,8 @@ In the following example we create two directives.
Size (integer 0 - 10):
{{size}}
- This is not valid integer!
-
+ This is not valid integer!
+
The value must be in range 0 to 10!
@@ -225,7 +225,8 @@ In the following example we create two directives.
Length (float):
{{length}}
- This is not valid number!
+
+ This is not a valid float number!
@@ -241,11 +242,11 @@ In the following example we create two directives.
ctrl.$parsers.unshift(function(viewValue) {
if (INTEGER_REGEXP.test(viewValue)) {
// it is valid
- ctrl.$setValidity('INTEGER', true);
+ ctrl.$setValidity('integer', true);
return viewValue;
} else {
// it is invalid, return undefined (no model update)
- ctrl.$setValidity('INTEGER', false);
+ ctrl.$setValidity('integer', false);
return undefined;
}
});
@@ -260,10 +261,10 @@ In the following example we create two directives.
link: function(scope, elm, attrs, ctrl) {
ctrl.$parsers.unshift(function(viewValue) {
if (FLOAT_REGEXP.test(viewValue)) {
- ctrl.$setValidity('FLOAT', true);
+ ctrl.$setValidity('float', true);
return parseFloat(viewValue.replace(',', '.'));
} else {
- ctrl.$setValidity('FLOAT', false);
+ ctrl.$setValidity('float', false);
return undefined;
}
});
--
cgit v1.2.3