Created
March 16, 2017 14:13
-
-
Save luizcarraro/b27174c3e160d5fbd0d12f7981447414 to your computer and use it in GitHub Desktop.
Boostrap modal Ember Mixin
This file contains hidden or 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.Mixin.create({ | |
activate() { | |
this._super(); | |
Ember.run.next(() => { | |
$(".modal").modal('show'); | |
}); | |
}, | |
actions: { | |
closeModal() { | |
$(".modal").modal('hide'); | |
window.history.back(); | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment