UI Bootstrap modal in the directive - several modals, but only one opens

As can be seen from this Plunkr , I have two modules, each in a separate directive modal-oneand modal-two.

The problem is that only the modal opens, even when you click on the modal button.

I assume it has something to do with the method .openon $scope, overwritten?

How can I prevent this? Thanks!

+4
source share
1 answer

, scope property , false ( ). , , $scope.open . , $scope.open.

, scope: true/scope: {}

, .

+3

Source: https://habr.com/ru/post/1627852/


All Articles