0

I have following click binding with AngularJS which is working fine : data-ng-click="vm.newCard()"

newCard() :

  $location.path("xxxx/card/0");

which is navigating correctly.

Now, I have following click binding with Jquery

 $(".responsiveTableBody").off("click", ".responsiveRow", vm.newCard);

click event is executing but it not route to URL

Any ideas on how to route?

TAbdiukov
  • 1,185
  • 3
  • 12
  • 25
Furqan Misarwala
  • 1,743
  • 6
  • 26
  • 53

1 Answers1

0

Since you are trying to call a function that only angularjs know about you would need to get hold of the angularjs scope from jquery and also notify angularjs that this function has been triggered afterwards. Take a look at this similar question Call Angular Function with Jquery

masimplo
  • 3,674
  • 2
  • 30
  • 47