Created
October 4, 2015 10:31
-
-
Save mfeckie/06cd8e49bde2da1c19ad to your computer and use it in GitHub Desktop.
Component that adds some behaviour with jQuery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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