Skip to content

Instantly share code, notes, and snippets.

@pswai
Created February 28, 2017 07:46
Show Gist options
  • Save pswai/df95f25c80456a80dfe95928a3062b1f to your computer and use it in GitHub Desktop.
Save pswai/df95f25c80456a80dfe95928a3062b1f to your computer and use it in GitHub Desktop.
disabling input
import Ember from 'ember';
export default Ember.Controller.extend({
// Change this to view the effect
isDisabled: false
});
<input type="text" disabled={{isDisabled}}>
{
"version": "0.11.0",
"EmberENV": {
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.10.2",
"ember-data": "2.11.0",
"ember-template-compiler": "2.10.2",
"ember-testing": "2.10.2"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment