aboutsummaryrefslogtreecommitdiffstats
path: root/docs/examples/settings.html
diff options
context:
space:
mode:
Diffstat (limited to 'docs/examples/settings.html')
-rw-r--r--docs/examples/settings.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs/examples/settings.html b/docs/examples/settings.html
new file mode 100644
index 00000000..2fa5dca8
--- /dev/null
+++ b/docs/examples/settings.html
@@ -0,0 +1,18 @@
+<label>Name:</label>
+<input type="text" name="form.name" ng:required>
+
+<div ng:repeat="contact in form.contacts">
+ <select name="contact.type">
+ <option>url</option>
+ <option>email</option>
+ <option>phone</option>
+ </select>
+ <input type="text" name="contact.url">
+ [ <a href="" ng:click="form.contacts.$remove(contact)">X</a> ]
+</div>
+<div>
+ [ <a href="" ng:click="form.contacts.$add()">add</a> ]
+</div>
+
+<button ng:click="cancel()">Cancel</button>
+<button ng:click="save()">Save</button> \ No newline at end of file