I have a directive project. Multiple projects are set on a page. Based on a data attribute it sets a scope variable to true or false. I want to be able to set all scope variables to false.

I can provide code if necessary but essentially my question is how can I click on a button to affect the scope variable in every single instance of a directive on a page?