Skip to content

Instantly share code, notes, and snippets.

@kumkanillam
Last active October 8, 2016 06:38
Show Gist options
  • Save kumkanillam/22a99040d8c852efdd30e3229d6e65fe to your computer and use it in GitHub Desktop.
Save kumkanillam/22a99040d8c852efdd30e3229d6e65fe to your computer and use it in GitHub Desktop.
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['svg-icon'],
classNameBindings:['inactive:social__iconselected:social__icon','test'],
test:true,
init(){
this._super(...arguments);
//console.log(' Classess ',this.get('classNames'));
//this.get('classNames').unshiftObject('svg-icon');
//console.log(' Classess ',this.get('classNames'));
}
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
<h1>Welcome to {{appName}}</h1>
<br>
{{my-component inactive=true }}
<br>
{{outlet}}
<br>
<br>
{
"version": "0.10.5",
"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.8.0",
"ember-data": "2.8.0",
"ember-template-compiler": "2.8.0",
"ember-testing": "2.8.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment