We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 384f4cf commit 60e998eCopy full SHA for 60e998e
MarvelWorld-Cli/app/routes/application.js
@@ -2,14 +2,13 @@ import Ember from 'ember';
2
3
export default Ember.Route.extend({
4
actions: {
5
- openModal: function(modalName, model) {
6
- this.controllerFor(modalName).set('model', model);
7
- return this.render(modalName, {
+ openModal: function(controller, model) {
+ this.controllerFor(controller).set('model', model);
+ return this.render(controller, {
8
into: 'application',
9
outlet: 'modal'
10
});
11
},
12
-
13
closeModal: function() {
14
return this.disconnectOutlet({
15
outlet: 'modal',
0 commit comments