How to display any controller in a popup with model from its route include query params?


#1

I want to create lookup field for parent entity. I read about modal dialogs, and can do this

showModal: function(name) {
  this.controllerFor(name).set('content', this.store.findAll('user'));
  this.render(name, {
    into: 'application',
    outlet: 'modal'
  });
},

but in this case all features of this controller based on query parameters (sorting, searching, pagination) doesn’t work. How can I create popup window with all behaviours of the controller when it is displayed in usual way?