From 98e18a64aa6b4d7323b684f4d65ba2db30828762 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Wed, 21 Mar 2012 13:52:11 -0700 Subject: docs(cookbook/form): fix the example Closes #712 --- docs/content/cookbook/form.ngdoc | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'docs') diff --git a/docs/content/cookbook/form.ngdoc b/docs/content/cookbook/form.ngdoc index afb30e36..175a7275 100644 --- a/docs/content/cookbook/form.ngdoc +++ b/docs/content/cookbook/form.ngdoc @@ -20,7 +20,7 @@ allow a user to enter data. $scope.zip = /^\d\d\d\d\d$/; $scope.addContact = function() { - $scope.user.contacts.push({type:'', value:''}); + $scope.user.contacts.push({type:'email', value:''}); }; $scope.removeContact = function(contact) { @@ -34,16 +34,16 @@ allow a user to enter data.
-
-

+
+

-
-
- , - +
+
+ , +

+ ng-pattern="zip" required>

[ add ] @@ -54,12 +54,12 @@ allow a user to enter data. - + [ X ]

Debug View: -
user={{user}}
+
user={{user | json}}
-- cgit v1.2.3