Skip to content

Instantly share code, notes, and snippets.

@kybishop
Created January 25, 2017 19:21
Show Gist options
  • Save kybishop/f4b0eddbe31ad3f5f282ae4cb6efa40c to your computer and use it in GitHub Desktop.
Save kybishop/f4b0eddbe31ad3f5f282ae4cb6efa40c to your computer and use it in GitHub Desktop.
font-awesome
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
showIcon() {
this.set('show', true);
}
}
});
<h1>Welcome to {{appName}}</h1>
<br>
{{#if show}}
icon should be here: {{fa-icon "times-circle"}}
{{/if}}
{{outlet}}
<br>
<button {{action "showIcon"}}>showIcon</button>
{
"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": {
"ember-font-awesome": "2.2.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment