mardi 26 avril 2016

How to open a route in a modal dialog in ember.js?

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,

  1. How can we open a route as a modal dialog ?
  2. 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?
  3. Is there any guide, document, tutorial or npm package for implementing modals in ember.js?



Aucun commentaire:

Enregistrer un commentaire