Skip to content

Instantly share code, notes, and snippets.

@jherdman
Created November 10, 2016 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jherdman/42391ffb005a68eff9d88bbfba596e57 to your computer and use it in GitHub Desktop.
Save jherdman/42391ffb005a68eff9d88bbfba596e57 to your computer and use it in GitHub Desktop.
hello-1
import Ember from 'ember';
export default Ember.Controller.extend({
myCondition: true,
});
<div class={{if myCondition 'foo' 'bar'}} id="my-elem">
Inspect my classes
</div>
{
"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": "2.9.0",
"ember-data": "2.9.0",
"ember-template-compiler": "2.9.0",
"ember-testing": "2.9.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment