Skip to content

Instantly share code, notes, and snippets.

@foxnewsnetwork
Last active March 16, 2018 22:55
Show Gist options
  • Save foxnewsnetwork/193b667c742f1eccc56440f814214aa5 to your computer and use it in GitHub Desktop.
Save foxnewsnetwork/193b667c742f1eccc56440f814214aa5 to your computer and use it in GitHub Desktop.
Ember Conf 2018 TP;DG
@foxnewsnetwork
Copy link
Author

foxnewsnetwork commented Mar 16, 2018

Marie Chatfield's Ember Events

Marie Chatfield went over a deep dive on DOM events in Ember. Here's the big takeaway:

Don't attach DOM-element listeners:

<button onclick={{action 'myAction'}}>
  blah
</button>

and instead use Ember ones:

<button {{action 'myAction' on='click'}}>
  blah
</button>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment