what is the best way to have two directives talk to each other? Lets say I have the following setup:
<drop-uploader></drop-uploader>
<drop-uploader></drop-uploader>
<progress-bar></progress-bar>
whats the best way to have the "uploader" directive notify the "progress bar" directive? Is the best way to use events on the rootScope or use a service? Is there a way to reference a directive as an attribute on another directive to access its scope? Something like this...
<drop-uploader progress-bar="thisone"></drop-uploader>
<drop-uploader progress-bar="thisone"></drop-uploader>
<progress-bar name="thisone"></progress-bar>