Using jQuery’s $.ajax within an angularJS controller

Because using jQuery ajax is out of the world of angular, you need to wrap your $scope assignment inside of

$scope.$apply(function(){
    $scope.user = data;
});

Angular’s $http comes pre-built with the digest cycle triggering mechanism.

Leave a Comment