Angular multiple instances of same directive, scope is not isolated

Viewed 11429

I have a problem when creating multiple directives with isolated scope: when I change something in 1st directive it also makes changes in all other directives.

Here is a working example: http://plnkr.co/edit/drBghqHHx2qz20fT91mi?p=preview (try to add more of Type1 'Available notifications' - a change in 1st will reflect in all other directives of Type1)

I found some solutions to similar problems here but they don't work in my case. Also found a working solution with mapping 'subscription' data to local scope variables in directive (app.js, line 76) but I think there should be a more general way to do this right?

1 Answers
Related