Skip to content

Instantly share code, notes, and snippets.

@billpull
Last active October 21, 2015 20:59
Show Gist options
  • Save billpull/51e6d25d079ac056d339 to your computer and use it in GitHub Desktop.
Save billpull/51e6d25d079ac056d339 to your computer and use it in GitHub Desktop.
{{x-toggle}}
{{ -- display logic for hours }}
{{/x-toggle}}
<div class="">
<!-- isHidden False -->
<!-- hours content -->
</div>
<div class="is-hidden">
<!-- isHidden True -->
<!-- hours content -->
</div>
.is-hidden {
display: none;
}
import Ember from 'ember';
export default Ember.Component.extend({
className: ['isHidden'],
isHidden: true,
click: function () {
this.set('isHidden', !this.get('isHidden'));
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment