mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
18 lines
513 B
HTML
18 lines
513 B
HTML
<label>Name:</label>
|
|
<input type="text" ng:model="form.name" required>
|
|
|
|
<div ng:repeat="contact in form.contacts">
|
|
<select ng:model="contact.type">
|
|
<option>url</option>
|
|
<option>email</option>
|
|
<option>phone</option>
|
|
</select>
|
|
<input type="text" ng:model="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>
|