Skip to content

Instantly share code, notes, and snippets.

@jonpitch
Created April 2, 2016 13:49
Show Gist options
  • Save jonpitch/215c996a749422e0adc2b8aec93ddf6d to your computer and use it in GitHub Desktop.
Save jonpitch/215c996a749422e0adc2b8aec93ddf6d to your computer and use it in GitHub Desktop.
Ember Theming - Component
<div class="my-awesome-class" data-theme="{{theme.name}}">
stuff goes here
</div>
import Ember from 'ember';
export default Ember.Component.extend({
theme: Ember.inject.service()
// ...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment