Skip to content

Instantly share code, notes, and snippets.

@James-Byrne
Created April 1, 2019 13:06
Show Gist options
  • Save James-Byrne/e1c7195c4a4cf0ed93ef8cfc5a57a95b to your computer and use it in GitHub Desktop.
Save James-Byrne/e1c7195c4a4cf0ed93ef8cfc5a57a95b to your computer and use it in GitHub Desktop.
Testing Hidden Input Value binding
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<h4>Visible Input</h4>
{{input type="text" value=appName}}
<h4>Invisible Input below</h4>
{{input type="hidden" value=appName}}
{
"version": "0.15.1",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js",
"ember": "3.4.3",
"ember-template-compiler": "3.4.3",
"ember-testing": "3.4.3"
},
"addons": {
"ember-data": "3.4.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment