Can anyone help me with an issue I'm having while creating multiple directives with isolated scope? Whenever I make a change in the 1st directive, it also affects all other directives. It's causing some unexpected behavior.
For those who want to take a look at my problem, here is a working example: http://plnkr.co/edit/drBghqHHx2qz20fT91mi?p=preview. Feel free to add more of Type1 'Available notifications' and notice how changes in one reflect in all others of Type1 as well.
I have come across some solutions for similar issues online but they haven't worked for me so far. I did find a workaround by mapping 'subscription' data to local scope variables in the directive (app.js, line 76), but I believe there should be a better, more general way to solve this problem. Any suggestions?