I am trying to use angular-http-auth library with bootstrap modal window. Modals are working fine but I have problems with directives. Here is a jsfiddle link - http://jsfiddle.net/jCUSh/85/ . I am trying to add a directive that will be invoked and that adds listeners. I have simplified the example in jsfiddle, so you won't see http-auth imports. However scope.on('') elements are still left (they don't break the picture anyway).
My question is - why isn't the linking function called? I added elem.addClass('test')
as an example.
I believe the solution is super simple, just unable to see it.
Also less important question - is it ok to pass scope as a parameter to another scope? I need it to close the modal window.
Thanks