I just wanted to ask why $(this) selector doesn't work inside $scope functions in Angular JS + jQuery.
I have this sample code:
[Javascript]
$scope.startTimer = function() {
$(this).hide();
}
[HTML]
<button ng-click="startTimer()">
I've tried doing it like this but still doesn't work:
[Javascript]
$scope.startTimer = function(btn) {
$(btn).hide();
}
[HTML]
<button ng-click="startTimer(this)">
Anyone knows how to fix this? Sorry for the noob question.