diff options
Diffstat (limited to 'docs/content/cookbook/advancedform.ngdoc')
| -rw-r--r-- | docs/content/cookbook/advancedform.ngdoc | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/docs/content/cookbook/advancedform.ngdoc b/docs/content/cookbook/advancedform.ngdoc index 58a8dfd5..37c5da0d 100644 --- a/docs/content/cookbook/advancedform.ngdoc +++ b/docs/content/cookbook/advancedform.ngdoc @@ -58,35 +58,35 @@ detection, and preventing invalid form submission. $scope.cancel(); } </script> - <div ng:controller="UserForm"> + <div ng-controller="UserForm"> <form name="myForm"> <label>Name:</label><br/> - <input type="text" ng:model="form.name" required/> <br/><br/> + <input type="text" ng-model="form.name" required/> <br/><br/> <label>Address:</label> <br/> - <input type="text" ng:model="form.address.line1" size="33" required/> <br/> - <input type="text" ng:model="form.address.city" size="12" required/>, - <input type="text" ng:model="form.address.state" size="2" - ng:pattern="state" required/> - <input type="text" ng:model="form.address.zip" size="5" - ng:pattern="zip" required/><br/><br/> + <input type="text" ng-model="form.address.line1" size="33" required/> <br/> + <input type="text" ng-model="form.address.city" size="12" required/>, + <input type="text" ng-model="form.address.state" size="2" + ng-pattern="state" required/> + <input type="text" ng-model="form.address.zip" size="5" + ng-pattern="zip" required/><br/><br/> <label>Contacts:</label> - [ <a href="" ng:click="addContact()">add</a> ] - <div ng:repeat="contact in form.contacts"> - <select ng:model="contact.type"> + [ <a href="" ng-click="addContact()">add</a> ] + <div ng-repeat="contact in form.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> - <button ng:click="cancel()" ng:disabled="{{isCancelDisabled()}}">Cancel</button> - <button ng:click="save()" ng:disabled="{{isSaveDisabled()}}">Save</button> + <button ng-click="cancel()" ng-disabled="{{isCancelDisabled()}}">Cancel</button> + <button ng-click="save()" ng-disabled="{{isSaveDisabled()}}">Save</button> </form> <hr/> |
