Skip to content

Instantly share code, notes, and snippets.

@mekhami
Created December 3, 2015 23:26
Show Gist options
  • Select an option

  • Save mekhami/a9b00aac4c61e0fc1b94 to your computer and use it in GitHub Desktop.

Select an option

Save mekhami/a9b00aac4c61e0fc1b94 to your computer and use it in GitHub Desktop.
<div id="confirm-form" class="row">
<div class="col-sm-8 col-sm-offset-2 text-center">
<form>
<div class="form-group">
<!-- BIND THIS VALUE TO formData.text IN ANGULAR -->
<input type="text" class="form-control input-lg text-center" placeholder="Enter your full name" ng-model="formData.name" ng-value="rsvp.name">
<h4>{{rsvp.email}}</h4>
<input type="text" class="form-control input-lg text-center" placeholder="Enter your Email address" ng-model="formData.email" value="{{ rsvp.email }}">
<h3>Attending?</h3>
<label>True
<input type="radio" class="form-control input-lg text-center" ng-model="formData.attending" ng-value="true">
</label>
<label>False
<input type="radio" class="form-control input-lg text-center" ng-model="formData.attending" ng-value="false">
</label>
</div>
<button type="submit" class="btn btn-primary btn-lg" ng-click="fetchRsvp()">Add</button>
</form>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment