diff options
Diffstat (limited to 'docs/content/cookbook/form.ngdoc')
| -rw-r--r-- | docs/content/cookbook/form.ngdoc | 28 |
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. |
