Skip to content

Instantly share code, notes, and snippets.

@mfeckie
Created October 4, 2015 10:31
Show Gist options
  • Save mfeckie/06cd8e49bde2da1c19ad to your computer and use it in GitHub Desktop.
Save mfeckie/06cd8e49bde2da1c19ad to your computer and use it in GitHub Desktop.
Component that adds some behaviour with jQuery
<p>
I am clickable
</p>
import Ember from 'ember';
export default Ember.Component.extend({
didInsertElement () {
Ember.$(this.element).on('click', function () {
window.alert("I was clicked");
})
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment