Message boxes in Polymer applications
问题 I am working on my first bigger Polymer application and currently have around 30 components. Most of the components need to be able to display (modal) message boxes. For this I implemented a message box component wrapping paper-dialog (similar to other message box components available). What I don't like is that in every component which wants to display message boxes I need to define an element <my-message-box id="message-box"></my-message-box> and then call it like this this.$["message-box"]