For example, I have two models: book and author, and I created forms for them I have lookup field for searching of authors on book’s form and want to display modal box with list of authors when user clicks on this field. For that I create new component “modal-lookup-grid”. But I must pass list of authors to this component, but what can I do if this list is very big?.. I can’t load it when the form is opened. I do the following in my component:
this.container.lookup('store:application').findQuery('author', params); // params is for purpose of pagination.
But I think that it is not “ember way” with its routes and model’s hooks.
how you do it in your applications?