Skip to content

Instantly share code, notes, and snippets.

@gregtap
Created October 27, 2015 00:56
Show Gist options
  • Select an option

  • Save gregtap/408f10593f9b7e164949 to your computer and use it in GitHub Desktop.

Select an option

Save gregtap/408f10593f9b7e164949 to your computer and use it in GitHub Desktop.
ember
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'nav',
isMenuVisible: false,
actions: {
toggleMenu: function() {
this.toggleProperty('isMenuVisible');
},
},
});
A helper named 'bind-attr' could not be found
<div class="menu {{bind-attr class="isMenuVisible"}}">
<h3>I am a menu</h3>
</div>
<button class="hamburger" {{action "toggleMenu"}}>
<span>toggle menu</span>
</button>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment