Skip to content

Instantly share code, notes, and snippets.

@rwjblue
Forked from galfert/controllers.application.js
Last active December 21, 2018 21:09
Show Gist options
  • Save rwjblue/558af5aa87da7790c4968f912268b725 to your computer and use it in GitHub Desktop.
Save rwjblue/558af5aa87da7790c4968f912268b725 to your computer and use it in GitHub Desktop.
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="" required>
</form>
{
"version": "0.10.6",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment