Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save cafreeman/d3ca7845dfbc7f277a31942be5a24ec1 to your computer and use it in GitHub Desktop.
Save cafreeman/d3ca7845dfbc7f277a31942be5a24ec1 to your computer and use it in GitHub Desktop.
Readonly Wat
import Ember from 'ember';
export default Ember.Component.extend({
});
import Ember from 'ember';
export default Ember.Controller.extend({
foo: true,
bar: false
});
{{input-component readOnly=true disabled=true}}
{{input-component readOnly=true disabled=false}}
{{input-component readOnly=false disabled=true}}
{{input-component readOnly=false disabled=false}}
<input readonly={{readOnly}} disabled={{disabled}} />
{
"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