durandal 2.0 - How to close all open durandaljs modal dialogs -


currently working on project relies heavily on modal dialogs. i'm using durandal's dialog plugin. problem have within modal, user can click element displays details in modal.

what close open modals before open new modal. can give me idea of how can ensure single dialog open @ given time in durandaljs?

why not use durandal's pub/sub, or client-side message bus such postal.js (which use)? close modals sending close message on channel 'app' , topic 'app/modals'. instead of holding reference observable (which have memory implications), hold reference message channel (which string). cleaner way go.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -