Using Angular's http service instead of jQuery's ajax method.