Just trying to understand why I'm getting undefined
when trying to build up a ng-click call to a method using a jQuery function.
Here's one example of it:
<a href="#" class="btn btn-default" ng-click="angularMethod($('input[name=__RequestVerificationToken]').val())">...</a>
on the ng-controller I have:
$scope.angularMethod = function(token) {
$log.debug(token);
}
which renders me a undefined
message on the console.
I have a full jQuery js file being loaded before the angular js file. Wasn't this supposed to be working?