aboutsummaryrefslogtreecommitdiffstats
path: root/docs/content/cookbook/form.ngdoc
diff options
context:
space:
mode:
authorVojta Jina2012-03-13 13:52:57 -0700
committerVojta Jina2012-03-13 13:52:57 -0700
commit63be222326f3badbb76371f82d49fed5ab9e3e65 (patch)
treedec4d6f0e8fb72d8226f5a40cb4783b8e3787313 /docs/content/cookbook/form.ngdoc
parenta29c2cf70cb19f9fb4be2b62e7acd4054751ac51 (diff)
downloadangular.js-63be222326f3badbb76371f82d49fed5ab9e3e65.tar.bz2
docs(input): Fix some broken links, add missing $, use ng- in examples
Diffstat (limited to 'docs/content/cookbook/form.ngdoc')
-rw-r--r--docs/content/cookbook/form.ngdoc28
1 files changed, 14 insertions, 14 deletions
diff --git a/docs/content/cookbook/form.ngdoc b/docs/content/cookbook/form.ngdoc
index b811a1fc..afb30e36 100644
--- a/docs/content/cookbook/form.ngdoc
+++ b/docs/content/cookbook/form.ngdoc
@@ -32,30 +32,30 @@ allow a user to enter data.
};
}
</script>
- <div ng:controller="FormController" class="example">
+ <div ng-controller="FormController" class="example">
<label>Name:</label><br/>
- <input type="text" ng:model="user.name" required/> <br/><br/>
+ <input type="text" ng-model="user.name" required/> <br/><br/>
<label>Address:</label><br/>
- <input type="text" ng:model="user.address.line1" size="33" required> <br/>
- <input type="text" ng:model="user.address.city" size="12" required>,
- <input type="text" ng:model="user.address.state" size="2"
- ng:pattern="state" required>
- <input type="text" ng:model="user.address.zip" size="5"
- ng:pattern="zip" required><br/><br/>
+ <input type="text" ng-model="user.address.line1" size="33" required> <br/>
+ <input type="text" ng-model="user.address.city" size="12" required>,
+ <input type="text" ng-model="user.address.state" size="2"
+ ng-pattern="state" required>
+ <input type="text" ng-model="user.address.zip" size="5"
+ ng-pattern="zip" required><br/><br/>
<label>Phone:</label>
- [ <a href="" ng:click="addContact()">add</a> ]
- <div ng:repeat="contact in user.contacts">
- <select ng:model="contact.type">
+ [ <a href="" ng-click="addContact()">add</a> ]
+ <div ng-repeat="contact in user.contacts">
+ <select ng-model="contact.type">
<option>email</option>
<option>phone</option>
<option>pager</option>
<option>IM</option>
</select>
- <input type="text" ng:model="contact.value" required/>
- [ <a href="" ng:click="removeContact(contact)">X</a> ]
+ <input type="text" ng-model="contact.value" required/>
+ [ <a href="" ng-click="removeContact(contact)">X</a> ]
</div>
<hr/>
Debug View:
@@ -102,7 +102,7 @@ allow a user to enter data.
# Things to notice
-* The user data model is initialized {@link api/angular.module.ng.$compileProvider.directive.ng:controller controller} and is
+* The user data model is initialized {@link api/angular.module.ng.$compileProvider.directive.ng-controller controller} and is
available in the {@link api/angular.module.ng.$rootScope.Scope scope} with the initial data.
* For debugging purposes we have included a debug view of the model to better understand what
is going on.