Skip to content

Instantly share code, notes, and snippets.

@PankajWorks
Created December 21, 2017 09:53
Show Gist options
  • Save PankajWorks/6943873968729e0dc17025319c4623b4 to your computer and use it in GitHub Desktop.
Save PankajWorks/6943873968729e0dc17025319c4623b4 to your computer and use it in GitHub Desktop.
Ember : submit a form
<form {{action 'savePerson' person on='submit'}} class="form-inline">
<div class="input-group">
{{input value=person.name class='form-control'}}
<div class="input-group-btn">
<button type="submit" class="btn btn-success" disabled={{person.isNotValid}}>Save</button>
<button class="btn btn-danger" {{action 'cancelPersonEdit' person}}>Cancel</button>
</div>
</div>
</form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment