aboutsummaryrefslogtreecommitdiffstats
path: root/docs/static
diff options
context:
space:
mode:
authorMisko Hevery2011-02-03 15:21:34 -0800
committerMisko Hevery2011-02-03 20:03:38 -0800
commit882f412d578e4f01394847fa5fde21b6b4096de2 (patch)
tree2d62877e0c00a5117ae3988172e630b1af9c10e5 /docs/static
parent0d4def68ae0d95dd106d2731d60b6d6b635b5afc (diff)
downloadangular.js-882f412d578e4f01394847fa5fde21b6b4096de2.tar.bz2
Added remainder of the cookbook
Diffstat (limited to 'docs/static')
-rw-r--r--docs/static/settings.html18
-rw-r--r--docs/static/welcome.html5
2 files changed, 23 insertions, 0 deletions
diff --git a/docs/static/settings.html b/docs/static/settings.html
new file mode 100644
index 00000000..2fa5dca8
--- /dev/null
+++ b/docs/static/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
diff --git a/docs/static/welcome.html b/docs/static/welcome.html
new file mode 100644
index 00000000..b085123d
--- /dev/null
+++ b/docs/static/welcome.html
@@ -0,0 +1,5 @@
+Hello {{person.name}},
+<div>
+ Your contact information:
+ <div ng:repeat="contact in person.contacts">{{contact.type}}: {{contact.url|linky}}</div>
+</div>