1

How to test a function inside a link of a directive in angular?

link:function(scope,element,attr) {
          var closeBox = function(event) {
            //do something...
          }
            $(document).on("click",closeBox);
        }

How to test "closeBox"?

anand patil
  • 507
  • 1
  • 9
  • 26

0 Answers0