diff options
| author | Misko Hevery | 2011-09-08 13:56:29 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-10-11 11:01:45 -0700 |
| commit | 4f78fd692c0ec51241476e6be9a4df06cd62fdd6 (patch) | |
| tree | 91f70bb89b9c095126fbc093f51cedbac5cb0c78 /docs/examples | |
| parent | df6d2ba3266de405ad6c2f270f24569355706e76 (diff) | |
| download | angular.js-4f78fd692c0ec51241476e6be9a4df06cd62fdd6.tar.bz2 | |
feat(forms): new and improved forms
Diffstat (limited to 'docs/examples')
| -rw-r--r-- | docs/examples/settings.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/examples/settings.html b/docs/examples/settings.html index 2fa5dca8..74500b35 100644 --- a/docs/examples/settings.html +++ b/docs/examples/settings.html @@ -1,13 +1,13 @@ <label>Name:</label> -<input type="text" name="form.name" ng:required> +<input type="text" ng:model="form.name" required> <div ng:repeat="contact in form.contacts"> - <select name="contact.type"> + <select ng:model="contact.type"> <option>url</option> <option>email</option> <option>phone</option> </select> - <input type="text" name="contact.url"> + <input type="text" ng:model="contact.url"> [ <a href="" ng:click="form.contacts.$remove(contact)">X</a> ] </div> <div> @@ -15,4 +15,4 @@ </div> <button ng:click="cancel()">Cancel</button> -<button ng:click="save()">Save</button>
\ No newline at end of file +<button ng:click="save()">Save</button> |
