We have a requirement of opening a modal dialog containing a route or a component. We are looking for some modal components, and saw ember-bootstrap's modal is useful.
So,
- How can we open a route as a modal dialog ?
- Can we create a service, to pop up a modal dialog? Such as:
ModalDialogService.popup(title, bodyComponent, commitHandler, cancelHandler);
And how can we do this without violating the Data Down Action Up principle? - Is there any guide, document, tutorial or npm package for implementing modals in ember.js?
Aucun commentaire:
Enregistrer un commentaire