Skip to content

Instantly share code, notes, and snippets.

Created Jan 20, 2016
What would you like to do?
Action handler for a "bad" open modal
openModal(modal, options) {
var controllerName = options && options.controller || 'modal';
var controller = this.controllerFor(controllerName);
controller.set('content', options && || {});'afterRender', this, function() {
this.render(modal, {
into: 'application',
outlet: 'modal',
controller: controllerName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment