Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
POST - Angular view form example.
<form ng-controller="ContactCtrl">
<label>Name</label>
<input type="text" ng-model="contact.name" />
<label>Enabled</label>
<input type="checkbox" ng-model="contact.isEnabled()" />
<div ng-show="contact.isFavorite()">
<p>More data just for favorite contacts...</p>
</div>
<label>Address</label>
<input type="text" ng-model="contact.address" ng-required="contact.isAddressRequired()" />
<button ng-click="save()">Save</button>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.