Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
required input
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
save: function() {
alert('saving ' + this.get('foo'));
<form {{action "save" on="submit"}}>
{{input value=foo required=true}}
<button type="submit">Save</button>
"version": "0.10.6",
"EmberENV": {
"options": {
"use_pods": false,
"enable-testing": false
"dependencies": {
"jquery": "",
"ember": "release",
"ember-data": "2.9.0",
"ember-template-compiler": "release",
"ember-testing": "release"
"addons": {}
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.