Skip to content

Instantly share code, notes, and snippets.

@GavinJoyce
Last active July 31, 2016 11:11
Show Gist options
  • Save GavinJoyce/6c2537edb1c0445ed6ae5e94d5082757 to your computer and use it in GitHub Desktop.
Save GavinJoyce/6c2537edb1c0445ed6ae5e94d5082757 to your computer and use it in GitHub Desktop.
link-to classNameBindings
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
For https://github.com/emberjs/ember.js/pull/13975
<hr />
{{#my-link-to 'index'}}This link has an `is-urgent` class{{/my-link-to}}
<hr />
{{#link-to 'index' classNameBindings='isUrgent' isUrgent=true}}
This link doens't have an `is-urgent` class
{{/link-to}}
{
"version": "0.10.4",
"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.7.0",
"ember-data": "2.7.0",
"ember-template-compiler": "2.7.0"
},
"addons": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment