No actual children were neglected in the making of this addon.
This Ember addon provides a single helper named ignore-children
. It lets you declare an event handler that will only fire for events that directly target the given element. Events from its children will be ignored.
For example, assume that your-component
accepts an action named doSomething
:
Then within your-component.hbs
, you can say:
See tests/dummy/app/index.hbs for a working example you can play with.
ember install ember-ignore-children-helper
Standard ember addon conventions apply. In this repo, ember s
will run the included dummy app and ember test
will run the test suite.