Last active
July 30, 2017 10:24
-
-
Save tchan/46598e22f4e5d22b8a4d1143dca7ccda to your computer and use it in GitHub Desktop.
Ember Actions
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.Controller.extend({ | |
actions: { | |
quit() { | |
//do quit code | |
}, | |
reset() { | |
//do reset code | |
} | |
} | |
}); |
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({ | |
actions: { | |
quit() { | |
this.sendAction('quitFromController'); | |
}, | |
reset() { | |
this.sendAction('resetFromController'); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment